app/views/spina/admin/structure_partables/photos/_form.html.haml in spina-0.11.1 vs app/views/spina/admin/structure_partables/photos/_form.html.haml in spina-0.12.0
- old
+ new
@@ -1,8 +1,11 @@
-= link_to spina.photo_select_admin_photos_path(f.object_name, selected_photo_id: f.object.structure_partable.try(:id)), remote: true, class: "media_picker" do
- .placeholder
- %span.button.button-small.button-round{data: {icon: 'U'}}=t 'spina.pages.photo_picker'
- - if f.object.structure_partable && f.object.structure_partable.file.present?
- .image
- = image_tag f.object.structure_partable.file.thumb
+.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.structure_partable.try(:id)), remote: true, class: "media_picker" do
+ .placeholder
+ %span.button.button-small.button-round{data: {icon: 'U'}}=t 'spina.pages.photo_picker'
+ - if f.object.structure_partable && f.object.structure_partable.file.present?
+ .image
+ = image_tag f.object.structure_partable.file.thumb
- = f.hidden_field :structure_partable_id
+ = f.hidden_field :structure_partable_id