Sha256: 772491b34205638343d59acda3ef327b2d6e81746e6c8b660c31e520b0a3a60c

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

= 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'}} Foto kiezen
    .image
      = image_tag photo_form.object.page_partable.file.thumb
  - else
    .placeholder
      %span.button.button-small.button-round{data: {icon: 'U'}} Foto kiezen

  = photo_form.hidden_field :page_partable_id

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-0.6.12 app/views/spina/admin/page_partables/_photo_form.html.haml
spina-0.6.11 app/views/spina/admin/page_partables/_photo_form.html.haml