mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-17 04:34:24 +00:00
Add on_demand field
But 'Array parameters do not play well with the check_box helper.' ...
This commit is contained in:
@@ -89,6 +89,9 @@
|
||||
%div.on-hand__wrapper
|
||||
= variant_form.number_field :on_hand, 'aria-label': t('admin.products_page.columns.on_hand')
|
||||
= error_message_on variant, :on_hand
|
||||
= variant_form.label :on_demand do
|
||||
= variant_form.check_box :on_demand
|
||||
= t('admin.products_page.columns.on_demand')
|
||||
%td.align-left
|
||||
.content= variant.product.supplier&.name # same as product
|
||||
%td.align-left
|
||||
|
||||
Reference in New Issue
Block a user