summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2017-11-27 00:55:40 +0000
committerGo MAEDA <maeda@farend.jp>2017-11-27 00:55:40 +0000
commit776a8d1828704ec2d93fc8c2eaa3cb95115fab40 (patch)
tree342e13713443a8ebb5cf3c126c56b25815358bc4 /app
parent4a6f9e01d60dffc80ff0a5f2278d5b82e4ed67c6 (diff)
downloadredmine-776a8d1828704ec2d93fc8c2eaa3cb95115fab40.tar.gz
redmine-776a8d1828704ec2d93fc8c2eaa3cb95115fab40.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/gantts/show.html.erb2
1 files changed, 1 insertions, 1 deletions
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 @@
</p>
<p class="buttons">
- <%= 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) %>