From 548dfe22cce2164d6814efa37159949403c04ada Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 11 Sep 2016 15:21:00 +0200 Subject: [PATCH 1/6] Update the changelog for the 0.17.0 release --- CHANGELOG.rdoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 6ec4f8e..ac74faa 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,5 +1,18 @@ = Stop… Camping Time! release news +== 1.17.0 + +Features: + +* Add support for choosing what date/time is used for new entries +* Some textual and style tweaks + +Bugfixes: +* Fix crash when showing all entries in the timeline [#89c2a1] + +Other bugfixes: +* Fix check that determines if last company info is used + == 1.16.1 Features: From fa6aa24e0d6d9aba1b98a81f611ad249f5b933ba Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 15 Oct 2018 19:40:28 +0200 Subject: [PATCH 2/6] Set minimal and step attributes for (currency) number input fields If the step attribute not set, the default step is set to 0.50, which is inconvient since it is also used for validation, i.e. if you have 35.50 in the field, the only surrounding values 36.0 and 35.0 are valid, not 35.60. --- stoptime.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index 3e02338..569261d 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -2339,7 +2339,7 @@ module StopTime::Views _form_input_radio("type", "hourly_rate", true) text!("Hourly rate: ") div.input_group do - _form_input("hourly_rate", :number, "Hourly rate") + _form_input("hourly_rate", :number, "Hourly rate", min: "0.00", step: "0.01") span.input_group_addon "€ / h" end end @@ -2349,7 +2349,7 @@ module StopTime::Views _form_input_radio("type", "fixed_cost") text!("Fixed cost: ") div.input_group do - _form_input("fixed_cost", :number, "Fixed cost") + _form_input("fixed_cost", :number, "Fixed cost", min: "0.00", step: "0.01") span.input_group_addon "€" end end From 157af0c2c3e2f90f144d2f186d2ec73b23c4312a Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 15 Oct 2018 19:42:24 +0200 Subject: [PATCH 3/6] 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 From d89f9ac65b894d466f8acbbd5bea4122ff3d3f0c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 15 Oct 2018 19:43:24 +0200 Subject: [PATCH 4/6] Redirect to the customer after editing it All other edit/forms redirect to the same page, why not this one? --- stoptime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stoptime.rb b/stoptime.rb index 3ab8a12..00795b4 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1097,7 +1097,7 @@ module StopTime::Controllers return render :customer_form end end - redirect R(Customers) + redirect R(CustomersN, customer_id) end end # class StopTime::Controllers::CustomersN From f6a412f9be36107374dd77364b67593e0aaab88b Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 15 Oct 2018 19:49:38 +0200 Subject: [PATCH 5/6] Bump the version to 1.17.1 --- stoptime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stoptime.rb b/stoptime.rb index 00795b4..12b92ee 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -55,7 +55,7 @@ end module StopTime # The version of the application - VERSION = '1.17.0' + VERSION = '1.17.1' puts "Starting Stop… Camping Time! version #{VERSION}" # @return [Hash{String=>Object}] The parsed configuration. From c5f6808e6b64c1b2249c7b76f81f5f41c340f418 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 15 Oct 2018 19:50:40 +0200 Subject: [PATCH 6/6] Update the changelog --- CHANGELOG.rdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index ac74faa..43f2ab4 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,5 +1,11 @@ = Stop… Camping Time! release news +== 1.17.1 + +Bugfixes: + +* Fix the number/currency input to allow for all values ≥ 0.00 + == 1.17.0 Features: