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
65 65
</p>
66 66

  
67 67
<p class="buttons">
68
  <%= text_field_tag 'months', @gantt.months, :size => 2 %>
68
  <%= number_field_tag 'months', @gantt.months, :min => 1, :max => 24, :autocomplete => false %>
69 69
  <%= l(:label_months_from) %>
70 70
  <%= select_month(@gantt.month_from, :prefix => "month", :discard_type => true) %>
71 71
  <%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %>
public/stylesheets/application.css
714 714
  width:auto;
715 715
}
716 716
input#time_entry_comments { width: 90%;}
717
input#months { width: 30px; }
717 718

  
718 719
#preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
719 720

  
(4-4/4)