Sha256: 8746a483822e11065f77c188c020a5c795036834ae0c2a75d683df03d2b61741

Contents?: true

Size: 541 Bytes

Versions: 10

Compression:

Stored size: 541 Bytes

Contents

.horizontal-form-label
  = f.object.title
.horizontal-form-content
  = link_to spina.select_admin_attachments_path(f.object_name, selected_attachment_id: f.object.structure_partable.try(:id)), remote: true, class: "media_picker" do
    .placeholder
      %span.button.button-small.button-round
        %i.icon.icon-dots
        = t('spina.choose_from_library')

    - if f.object.structure_partable && f.object.structure_partable.file.present?
      .attachment= f.object.structure_partable.name

    = f.hidden_field :structure_partable_id

Version data entries

10 entries across 10 versions & 1 rubygems

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