Sha256: f7340d3e8027a6d1ccd688a955445aa5a81e3cd6917596bff031122301199d6b
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 Bytes
Contents
- # no file upload on ajax submit :( - unless @quick_edit = node f, field do - file = f.object.send(field.name) - if file.file? - if type_is_image?(file.content_type) = image_tag find_smallest_size_url_for_file(file), class: 'uploaded_image' - else = link_to file.original_filename, file.url, class: 'uploaded_file' - if f.object.respond_to?(:"#{field.name}_destroy") .file_delete = f.check_box "#{field.name}_destroy" = f.label "#{field.name}_destroy", t('bhf.helpers.file.delete') - unless @quick_edit = f.file_field field.name
Version data entries
6 entries across 6 versions & 1 rubygems