We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53be0e5 commit 0c726dcCopy full SHA for 0c726dc
app/views/supply_items/_form.html.erb
@@ -3,7 +3,7 @@
3
<div class="box tabular">
4
<p><%= f.text_field :name, required: true, size: 25 %></p>
5
<% if f.object.new_record? %>
6
- <p><%= f.text_field :stock, required: true, size: 25, label: l(:field_supply_item_stock) %></p>
+ <p><%= f.number_field :stock, required: true, step: 0.1, size: 25, label: l(:field_supply_item_stock) %></p>
7
<% else %>
8
<p><%= f.label :stock %><span><%= @supply_item.stock %></span></p>
9
<% end %>
0 commit comments