Skip to content

Commit 0c726dc

Browse files
committed
changed issue supply setting's input stock type from text to number with step:0.1
1 parent 53be0e5 commit 0c726dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/supply_items/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="box tabular">
44
<p><%= f.text_field :name, required: true, size: 25 %></p>
55
<% if f.object.new_record? %>
6-
<p><%= f.text_field :stock, required: true, size: 25, label: l(:field_supply_item_stock) %></p>
6+
<p><%= f.number_field :stock, required: true, step: 0.1, size: 25, label: l(:field_supply_item_stock) %></p>
77
<% else %>
88
<p><%= f.label :stock %><span><%= @supply_item.stock %></span></p>
99
<% end %>

0 commit comments

Comments
 (0)