Sha256: 38568fb7053a801226845642a993fd5e306633accd505649a4f6c3ccb0a65eb9

Contents?: true

Size: 672 Bytes

Versions: 10

Compression:

Stored size: 672 Bytes

Contents

.horizontal-form-label
  = f.object.title
.horizontal-form-content
  = f.fields_for :structure_partable, f.object.structure_partable do |ff|
    = link_to spina.select_collection_admin_attachments_path(ff.object_name, selected_attachment_ids: ff.object.attachment_ids), remote: true, class: 'media_picker clearfix' do
      .placeholder
        %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

10 entries across 10 versions & 1 rubygems

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