.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 %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