]> source.dussan.org Git - redmine.git/commitdiff
Use number input field instead of text input for Gantt months field (#26869).
authorGo MAEDA <maeda@farend.jp>
Mon, 27 Nov 2017 00:55:40 +0000 (00:55 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 27 Nov 2017 00:55:40 +0000 (00:55 +0000)
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
public/stylesheets/application.css

index 19d065640a43386144af5af8b143683b4537f126..3aece3fd094f1dda94289665308801f3b2f7fdd6 100644 (file)
@@ -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) %>
index c9fbb4adf617be0d665b1c5b26ebf1f054cc1d54..0f7875adce91f0bcf6a4fb27771a6e0f908ccb68 100644 (file)
@@ -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)}