From fcad14c3d8452cc07d7d9108497c552daca3acad Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 21:11:05 +0800 Subject: [PATCH] Update _form.html.erb start_year plus 5 for user selection --- app/views/admin/researchs/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/researchs/_form.html.erb b/app/views/admin/researchs/_form.html.erb index 27b4187..2daea78 100644 --- a/app/views/admin/researchs/_form.html.erb +++ b/app/views/admin/researchs/_form.html.erb @@ -143,7 +143,7 @@
- <%= 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'} ) %>