mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-17 04:34:24 +00:00
Change on_hand's field to number_field and add required attribute
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
= f.label :on_hand, t(".on_hand")
|
||||
%span.required *
|
||||
%br/
|
||||
= f.text_field :on_hand, class: 'fullwidth'
|
||||
= f.number_field :on_hand, class: 'fullwidth', min: '0', required: true
|
||||
= f.error_message_on :on_hand
|
||||
.two.columns.omega
|
||||
= f.field_container :on_demand do
|
||||
|
||||
Reference in New Issue
Block a user