Sha256: 43e9a5125b819ba82283858d0291dc7dde264c245e4867689742326cf4499b54

Contents?: true

Size: 971 Bytes

Versions: 1

Compression:

Stored size: 971 Bytes

Contents

.horizontal-form-label
  = f.object.title
.horizontal-form-content
  = f.fields_for :page_partable, f.object.page_partable do |ff|
    = link_to spina.photo_collection_select_admin_photos_path(ff.object_name, selected_photo_ids: ff.object.photo_ids), remote: true, class: 'media_picker clearfix' do
      .placeholder.pull-right
        %span.button.button-small.button-round
          %i.icon.icon-dots
          =t 'spina.pages.photos_picker'

    .photo-collection
      - if ff.object.photos.sorted_by_photo_collection.any?
        = render 'spina/admin/photos/photo_collection', photos: ff.object.photos.sorted_by_photo_collection
      - elsif ff.object.photos.any?
        = render 'spina/admin/photos/photo_collection', photos: ff.object.photos
    = ff.hidden_field :photo_tokens, value: ff.object.photo_ids.join(",")
    = ff.hidden_field :photo_positions, value: ff.object.photos.sorted_by_photo_collection.pluck(:photo_id).join(","), class: 'photo-positions'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spina-0.10.0 app/views/spina/admin/page_partables/photo_collections/_form.html.haml