mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
= render partial: 'spree/admin/shared/product_sub_menu'
|
|
= render partial: 'spree/admin/shared/product_tabs', locals: { current: 'Images' }
|
|
= render partial: 'spree/shared/error_messages', locals: { target: @image }
|
|
|
|
- content_for :page_actions do
|
|
%li= button_link_to t('spree.back_to_images_list'), admin_product_images_url(@product, @url_filters), icon: 'icon-arrow-left'
|
|
|
|
= form_for [:admin, @product, @image], url: admin_product_image_path(@product, @image, @url_filters), html: { multipart: true } do |f|
|
|
%fieldset
|
|
%legend{align: "center"}= @image.attachment.filename
|
|
.field.alpha.three.columns.align-center
|
|
= f.label t('spree.thumbnail')
|
|
%br/
|
|
= link_to image_tag(@image.url(:small)), @image.url(:product)
|
|
.nine.columns.omega
|
|
= render partial: 'form', locals: { f: f }
|
|
.clear
|
|
.form-buttons.filter-actions.actions
|
|
= button t('spree.actions.update'), 'icon-refresh'
|
|
= link_to t('spree.actions.cancel'), admin_product_images_url(@product, @url_filters), id: 'cancel_link', class: 'button icon-remove'
|