Sha256: 26c5e4e81726edd9707c5713f13449dfb4c5213c9575912634d70f9ade268fe1

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

.horizontal-form-label
  = f.object.title
.horizontal-form-content
  = f.fields_for :page_partable, f.object.page_partable do |ff|
    = link_to select_collection_admin_attachments_path(ff.object_name, selected_attachment_ids: ff.object.attachment_ids), remote: true, class: 'media_picker clearfix' do
      .placeholder.pull-right
        %span.button.button-small.button-round
          %i.icon.icon-dots
          = t('spina.choose_from_library')
      - if ff.object.attachments.any?
        - ff.object.attachments.each do |attachment|
          .attachment= attachment.name

      = ff.hidden_field :attachment_tokens, value: ff.object.attachment_ids.join(",")

Version data entries

1 entries across 1 versions & 1 rubygems

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