1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-10 04:35:24 +00:00

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
This commit is contained in:
Go MAEDA 2017-11-27 00:55:40 +00:00
parent 4a6f9e01d6
commit 776a8d1828
2 changed files with 2 additions and 1 deletions

View 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) %>

View 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)}