Sha256: ef44c9a735f1641f41f3652ce2c1f28cb2e6a8631e2a78d7276f781d87f0f9ee

Contents?: true

Size: 865 Bytes

Versions: 13

Compression:

Stored size: 865 Bytes

Contents

%td
  = photo_form.object.title
%td
  = 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{data: {icon: 'U'}}=t 'spina.pages.photo_picker'
      .image
        = image_tag photo_form.object.page_partable.file.thumb
    - else
      .placeholder
        %span.button.button-small.button-round{data: {icon: 'U'}}=t 'spina.pages.photo_picker'

    = photo_form.hidden_field :page_partable_id

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spina-0.6.27 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.26 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.25 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.24 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.23 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.22 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.21 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.20 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.19 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.18 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.17 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.16 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.15 app/views/spina/admin/page_partables/_photo_form.html.haml