Sha256: 826a49cc725bc4dd87e51a2f345b1321f818af7895f46b449b08b94a26a16422
Contents?: true
Size: 1.02 KB
Versions: 12
Compression:
Stored size: 1.02 KB
Contents
<% field.attachments.each_with_index do |attachment, i| %> <div class="<%= field.reorderable? ? 'sortables' : '' %> toggle mb-2"> <%= attachment.pretty_value %> <% if field.delete_method || field.keep_method %> <a class="btn btn-info btn-remove-image" data-toggle="button" href="#" role="button"> <i class="fas fa-trash"></i> <%= I18n.t('admin.form.delete_file', field_label: field.label, number: i + 1) %> </a> <% if field.keep_method %> <%= form.check_box(field.keep_method, {multiple:true, checked: true, style: 'display:none;'}, attachment.keep_value, nil) %> <% elsif field.delete_method %> <%= form.check_box(field.delete_method, {multiple:true, style: 'display:none;'}, attachment.delete_value, nil) %> <% end %> <% end %> </div> <% end %> <%= form.file_field(field.name, { data: { :"multiple-fileupload" => true }, multiple: true }.deep_merge(field.html_attributes)) %> <% if field.cache_method %> <%= form.hidden_field(field.cache_method) %> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems