mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
13 lines
502 B
Plaintext
13 lines
502 B
Plaintext
= render partial: 'spree/shared/error_messages', locals: { target: @variant }
|
|
|
|
= admin_inject_available_units
|
|
|
|
= form_for [:admin, @product, @variant], :url => admin_product_variants_path(@product, @url_filters) do |f|
|
|
%fieldset
|
|
%legend{align: "center"}= t('.new_variant')
|
|
= render partial: 'form', locals: { f: f }
|
|
|
|
.form-buttons.filter-actions.actions
|
|
= button t('actions.create'), 'icon-ok'
|
|
= button_link_to t('actions.cancel'), collection_url(@url_filters), icon: 'icon-remove'
|