Sha256: be6989ef5ea79ca62adcb42e83f2560bcc25e9e6a87190770b2c10aa2f2cefda

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

.horizontal-form-label
  = f.object.title
.horizontal-form-content
  = link_to spina.photo_select_admin_photos_path(f.object_name, selected_photo_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.pages.photo_picker'

    - if f.object.page_partable && f.object.page_partable.file.present?
      .image
        = image_tag f.object.page_partable.file.thumb

    = 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/photos/_form.html.haml