Sha256: 96d54502b90294a0c013f704d9d8ef5b0dc9891ee411fae90e2376fdcdd08008
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
- field.attachments.each_with_index do |attachment, i| .toggle = attachment.pretty_value - if field.delete_method %a.btn.btn-info.btn-remove-image{href: '#', :'data-toggle' => 'button', role: 'button'} %i.icon-white.icon-trash = I18n.t('admin.actions.delete.menu').capitalize + " #{field.label.downcase} ##{i + 1}" = form.check_box(field.delete_method, {multiple:true, style: 'display:none;'}, attachment.delete_key, nil) = form.file_field(field.name, field.html_attributes.reverse_merge({ data: { :"multiple-fileupload" => true }, multiple: true })) - if field.cache_method = form.hidden_field(field.cache_method)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin-2.0.0.beta | app/views/rails_admin/main/_form_multiple_file_upload.html.haml |