Project

General

Profile

Patch #26869 » use_number_input_instead_of_text_input.patch

Marius BĂLTEANU, 2017-09-13 22:55

View differences:

app/views/gantts/show.html.erb
</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) %>
public/stylesheets/application.css
width:auto;
}
input#time_entry_comments { width: 90%;}
input#months { width: 30px; }
#preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
(4-4/4)