From 3030e58c85fafd8512bbe7dc96af2db23bc42c7f Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 22:37:08 +0800 Subject: [PATCH] Update _form.html.erb start_year plus 5 for user year selection --- app/views/admin/patents/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/patents/_form.html.erb b/app/views/admin/patents/_form.html.erb index b8214e8..6c76bd4 100644 --- a/app/views/admin/patents/_form.html.erb +++ b/app/views/admin/patents/_form.html.erb @@ -153,7 +153,7 @@
- <%= 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"} ) %>