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

This commit is contained in:
wmcheng 2018-11-30 22:57:23 +08:00
parent e58026ba9e
commit f3354ec72a
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@
<div class="control-group">
<label class="control-label muted"><%= t("personal_lab.year") %></label>
<div class="controls">
<%= select_year((@lab.year ? @lab.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'lab[year]', :class => 'span1'} ) %>
<%= select_year((@lab.year ? @lab.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'lab[year]', :class => 'span1'} ) %>
</div>
</div>