Update _form.html.erb start_year plus 5 for user selection tab

This commit is contained in:
wmcheng 2018-11-30 19:56:39 +08:00
parent ce280fe922
commit 9eb01a5e8d
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@
<div class="control-group"> <div class="control-group">
<label class="control-label muted"><%= t("personal_honor.year") %></label> <label class="control-label muted"><%= t("personal_honor.year") %></label>
<div class="controls"> <div class="controls">
<%= select_year(@honor.year, {:start_year => DateTime.now.year, :end_year => 1930, :prompt => "Choose year"}, {:name => 'honor[year]', :class => "span1"} ) %> <%= select_year(@honor.year, {:start_year => (DateTime.now.year+5), :end_year => 1930, :prompt => "Choose year"}, {:name => 'honor[year]', :class => "span1"} ) %>
</div> </div>
</div> </div>