Sha256: c2720eef36dcfdca99038d5ad7821647ac31e1e6bdd057283dd2b0b004cb91b5

Contents?: true

Size: 938 Bytes

Versions: 4

Compression:

Stored size: 938 Bytes

Contents

.horizontal-form-label
  = attachment_collection_form.object.title
.horizontal-form-content
  = attachment_collection_form.hidden_field :id
  = attachment_collection_form.hidden_field :title
  = attachment_collection_form.hidden_field :page_partable_type
  = attachment_collection_form.hidden_field :name

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spina-0.8.3 app/views/spina/admin/page_partables/_attachment_collection_form.html.haml
spina-0.8.2 app/views/spina/admin/page_partables/_attachment_collection_form.html.haml
spina-0.8.1 app/views/spina/admin/page_partables/_attachment_collection_form.html.haml
spina-0.8.0 app/views/spina/admin/page_partables/_attachment_collection_form.html.haml