Change on_hand's field to number_field and add required attribute

This commit is contained in:
Çağrı Özkan
2021-02-10 22:52:31 +03:00
parent 3a3485614d
commit 4db41f8a16

View File

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