From ae03f63136b3a2795d51015a6ef1e28bbe6f5660 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 21:16:56 +0800 Subject: [PATCH] Update _form.html.erb start_year plus for publication year selection --- app/views/admin/writing_conferences/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/writing_conferences/_form.html.erb b/app/views/admin/writing_conferences/_form.html.erb index a132eb0..d0a7fe9 100644 --- a/app/views/admin/writing_conferences/_form.html.erb +++ b/app/views/admin/writing_conferences/_form.html.erb @@ -163,7 +163,7 @@
- <%= select_year((@writing_conference.year ? @writing_conference.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930, :prompt => "Choose year"}, {:name => 'writing_conference[year]',:class => 'span1'} ) %> + <%= select_year((@writing_conference.year ? @writing_conference.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year + 5), :end_year => 1930, :prompt => "Choose year"}, {:name => 'writing_conference[year]',:class => 'span1'} ) %>