Sha256: ddf177cbe929cbc5d630375567dd6deedb4a7c53478aed7a19bc8844944aaaa9
Contents?: true
Size: 919 Bytes
Versions: 10
Compression:
Stored size: 919 Bytes
Contents
- field.attachments.each_with_index do |attachment, i| .toggle{class: field.reorderable? ? 'sortables' : ''} = attachment.pretty_value - if field.delete_method || field.keep_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}" - 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) = 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
10 entries across 10 versions & 1 rubygems