forked from saurabh/personal-research
Update _form.html.erb start_year plus 5 for user selection
This commit is contained in:
parent
19a84babe5
commit
fcad14c3d8
|
@ -143,7 +143,7 @@
|
|||
<div class="control-group">
|
||||
<label class="control-label muted"><%= t("personal_research.year") %></label>
|
||||
<div class="controls">
|
||||
<%= select_year((@research.year ? @research.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'research[year]',:class => 'span1'} ) %>
|
||||
<%= select_year((@research.year ? @research.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'research[year]',:class => 'span1'} ) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue