From 776a8d1828704ec2d93fc8c2eaa3cb95115fab40 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 27 Nov 2017 00:55:40 +0000 Subject: Use number input field instead of text input for Gantt months field (#26869). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17038 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/gantts/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index 19d065640..3aece3fd0 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -65,7 +65,7 @@

- <%= text_field_tag 'months', @gantt.months, :size => 2 %> + <%= number_field_tag 'months', @gantt.months, :min => 1, :max => 24, :autocomplete => false %> <%= l(:label_months_from) %> <%= select_month(@gantt.month_from, :prefix => "month", :discard_type => true) %> <%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> -- cgit v1.2.3