Sha256: 059e871c91c6530b7c09b99036808d1b686b431d22e49e51ce568f41897a38e3

Contents?: true

Size: 744 Bytes

Versions: 4

Compression:

Stored size: 744 Bytes

Contents

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

  = link_to select_admin_attachments_path(attachment_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 attachment_form.object.page_partable && attachment_form.object.page_partable.file.present?
        .attachment= attachment_form.object.page_partable.name

    = attachment_form.hidden_field :page_partable_id

Version data entries

4 entries across 4 versions & 1 rubygems

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