From 157af0c2c3e2f90f144d2f186d2ec73b23c4312a Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 15 Oct 2018 19:42:24 +0200 Subject: [PATCH] Make the default hourly rate input field also a number field --- stoptime.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index 569261d..3ab8a12 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -2161,9 +2161,11 @@ module StopTime::Views control_class: "col-sm-3 col-xs-4") _form_input_with_label("Financial contact", "financial_contact", :text, control_class: "col-sm-6 col-xs-8") - _form_input_with_label("Default hourly rate", "hourly_rate", :text, + _form_input_with_label("Default hourly rate", "hourly_rate", :number, control_class: "col-sm-4 col-xs-5", - input_addon: "€ / h") + input_addon: "€ / h", + min: "0.00", + step: "0.01") div.form_group do label.control_label.col_sm_3.col_xs_4 "Time specifications?" div.col_sm_6.col_xs_8 do