From ee97943250420484c72df20df0ad448b0938a6a4 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 21:18:48 +0800 Subject: [PATCH] Update _form.html.erb start_year plus 5 for project end year selection --- app/views/admin/projects/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/projects/_form.html.erb b/app/views/admin/projects/_form.html.erb index e4e0d17..d287749 100644 --- a/app/views/admin/projects/_form.html.erb +++ b/app/views/admin/projects/_form.html.erb @@ -153,7 +153,7 @@
- <%= select_year((@project.year ? @project.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'project[year]',:class => 'span1'} ) %> + <%= select_year((@project.year ? @project.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year + 5), :end_year => 1930}, {:name => 'project[year]',:class => 'span1'} ) %>