Sha256: b91e0528e71fdfafdf1b2d60b4d8d117e04a6bd42709bff515429c5c60fa3cc0
Contents?: true
Size: 488 Bytes
Versions: 6
Compression:
Stored size: 488 Bytes
Contents
= node f, field do - file = f.object.send(field.name) - if file.present? = render partial: 'bhf/form/column/attachment_presenter', locals: {attachment: file.attachment} - 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') = f.file_field field.name, direct_upload: true, data: {:'direct-upload-url' => main_app.rails_direct_uploads_url}
Version data entries
6 entries across 6 versions & 1 rubygems