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 +-
public/stylesheets/application.css | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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) %>
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)}
--
cgit v1.2.3