Add on_demand field

But 'Array parameters do not play well with the check_box helper.'

...
This commit is contained in:
David Cook
2023-11-10 17:01:31 +11:00
parent 7aefa834bf
commit 55cd8a6773
3 changed files with 9 additions and 2 deletions

View File

@@ -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