Sha256: 2db7c7451d9bf9fea86df86ea6db158959360598660a78b11b39a93c4e1a4619
Contents?: true
Size: 869 Bytes
Versions: 1
Compression:
Stored size: 869 Bytes
Contents
= form.fields_for :image do div data-component="ImageUploader" input name="image_id" data-item="id" type="hidden" .fileupload data-provides="fileupload" class="fileupload-#{resource.image? ? 'exists' : 'new'}" .fileupload-preview.thumbnail style="width: 50px; height: 50px;" = image_tag resource.image.file.regular, width: 50, height: 50 if resource.image? div span.btn.btn-file span.fileupload-new Escolher imagem span.fileupload-exists Alterar input type="file" data-url="#{file_uploader.images_path}" name="image[file]" - if resource.image? = link_to 'Excluir', file_uploader.image_path(resource.image), class: 'btn fileupload-exists', remote: true, method: :delete - else = link_to 'Excluir', '#', class: 'btn fileupload-exists', remote: true, method: :delete
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uploadbox-0.0.1 | app/views/file_uploader/images/_uploader.html.slim |