Sha256: 2aa109051db2ffd3809048bfd4dd6e2acd60e2f3b6d5353dcc834a428eaae2cf

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 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.page_partable.try(:id)), remote: true, class: 'media_picker clearfix' do
    .placeholder.pull-right
      %span.button.button-small.button-round
        %i.icon.icon-dots
        = t('spina.choose_from_library')

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

    = f.hidden_field :page_partable_id

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spina-0.10.0 app/views/spina/admin/page_partables/attachments/_form.html.haml