Update _form.html.erb start_year plus 5 for user year selection
This commit is contained in:
parent
75573476de
commit
3030e58c85
|
@ -153,7 +153,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted"><%= t("personal_patent.year") %></label>
|
<label class="control-label muted"><%= t("personal_patent.year") %></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= select_year((@patent.year ? @patent.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'patent[year]', :class => "span1"} ) %>
|
<%= select_year((@patent.year ? @patent.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'patent[year]', :class => "span1"} ) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue