Sha256: a3f1ce6f3014c4db68c1200bb867f481e9b31fc8af65069713a67230c2cc905a

Contents?: true

Size: 945 Bytes

Versions: 7

Compression:

Stored size: 945 Bytes

Contents

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

  = link_to spina.photo_select_admin_photos_path(photo_form.object_name, selected_photo_id: (photo_form.object.page_partable.id if photo_form.object.page_partable.present?)), remote: true, class: "media_picker" do
    - if photo_form.object.page_partable && photo_form.object.page_partable.file.present?
      .placeholder.pull-right
        %span.button.button-small.button-round
          %i.icon.icon-dots
          =t 'spina.pages.photo_picker'
      .image
        = image_tag photo_form.object.page_partable.file.thumb
    - else
      .placeholder
        %span.button.button-small.button-round
          %i.icon.icon-dots
          =t 'spina.pages.photo_picker'

    = photo_form.hidden_field :page_partable_id

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-0.8.3 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.8.2 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.8.1 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.8.0 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.7.3 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.7.2 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.7.0 app/views/spina/admin/page_partables/_photo_form.html.haml