Sha256: bb81712bd6eb2cbf66c00e978c5dd7f90c812bc7e86c7e09146b87fd33dd6a31
Contents?: true
Size: 989 Bytes
Versions: 11
Compression:
Stored size: 989 Bytes
Contents
- if f.object.assets.any? = node f, field do - imgs = f.object.assets.only_images - if imgs.any? %h4= t('ksk.asset.list.headline.photos') %ol.assets_list{:'data-sort-url' => sort_entries_path('assets')} - imgs.each do |asset| %li{id: "#{asset.id}_images"} = render partial: 'bhf/entries/form/has_many/upload', locals: {field: field, f: f, asset: asset, allow_position: !@quick_edit} - files = f.object.assets.only_data_files - if files.any? %h4= t('ksk.asset.list.headline.files') %ol.assets_list{:'data-sort-url' => sort_entries_path('assets')} - files.each do |asset| %li{id: "#{asset.id}_data_files"} = render partial: 'bhf/entries/form/has_many/upload', locals: {field: field, f: f, asset: asset, allow_position: !@quick_edit} .clear - unless @quick_edit = node f, field do .array_holder = f.fields_for field.name, Asset.new do |a| = a.file_field :file
Version data entries
11 entries across 11 versions & 1 rubygems