Change year from current year to current year plus 5.

This commit is contained in:
BoHung Chiu 2020-09-28 22:51:43 +08:00
parent 931171e25e
commit 004926ce87
1 changed files with 1 additions and 1 deletions

View File

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