Sha256: 889f8faee32cb949af1fbef9d68541d2dd40ff263639079d38e4869f3fa47665

Contents?: true

Size: 495 Bytes

Versions: 10

Compression:

Stored size: 495 Bytes

Contents

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

    - if f.object.partable && f.object.partable.file.attached?
      .attachment= f.object.partable.name

    = f.hidden_field :partable_id

Version data entries

10 entries across 10 versions & 1 rubygems

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