Sha256: eab7090c2eb5304ac0711a9a20c6438b2065855b6b70477b59853d6f20bb33d3

Contents?: true

Size: 929 Bytes

Versions: 10

Compression:

Stored size: 929 Bytes

Contents

.horizontal-form-label
  = f.object.title
.horizontal-form-content
  = f.fields_for :partable, f.object.partable do |ff|
    = link_to admin_media_picker_path(selected_ids: ff.object.image_ids, hidden_field_id: "media_picker_#{ff.object.object_id}", multiple: true), remote: true, class: 'media_picker clearfix' do
      .placeholder
        %span.button.button-small.button-round
          %i.icon.icon-dots
          =t 'spina.images.choose_images'

      .image-collection
        - if ff.object.images.any?
          = render 'spina/admin/image_collections/image_collection', images: ff.object.images.sorted_by_image_collection
          
      = ff.hidden_field :image_tokens, value: ff.object.image_ids.join(","), data: {hidden_field_id: "media_picker_#{ff.object.object_id}"}
      = ff.hidden_field :image_positions, value: ff.object.images.sorted_by_image_collection.pluck(:image_id).join(","), class: 'image-positions'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spina-1.2.0 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.1.4 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.1.3 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.1.2 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.1.1 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.1.0 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.0.3 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.0.2 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.0.1 app/views/spina/admin/partables/image_collections/_form.html.haml
spina-1.0.0 app/views/spina/admin/partables/image_collections/_form.html.haml