summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--app/views/gantts/show.html.erb2
-rw-r--r--public/stylesheets/application.css1
2 files changed, 2 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) %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index c9fbb4adf..0f7875adc 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -714,6 +714,7 @@ label.no-css {
width:auto;
}
input#time_entry_comments { width: 90%;}
+input#months { width: 30px; }
#preview fieldset {margin-top: 1em; background: url(../images/draft.png)}