Update _form.html.erb start_year plus 5 for publication year selection tab

This commit is contained in:
wmcheng 2018-11-30 19:54:44 +08:00
parent 3050e01d3e
commit 978cd286f1
1 changed files with 1 additions and 1 deletions

View File

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