Skip to content

Commit

Permalink
Allow decimal parts
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Feb 1, 2016
1 parent 5f9ea02 commit 5c16a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%>
<% else %>
<% if get_type(@metric, field) == :float %>
<%= f.number_field field.to_sym, class: 'form-control' %>
<%= f.number_field field.to_sym, class: 'form-control', step: 0.1, min: 0 %>
<% else %>
<%= f.text_field field.to_sym, class: 'form-control' %>
<% end %>
Expand Down

0 comments on commit 5c16a46

Please sign in to comment.