From b5f29798d6836d1e2b469845262e59db0f83438b Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 21:51:05 +0800 Subject: [PATCH] Update _form.html.erb publication year start_year plus 5 --- app/views/admin/journal_papers/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/journal_papers/_form.html.erb b/app/views/admin/journal_papers/_form.html.erb index 9beca17..3661f1f 100644 --- a/app/views/admin/journal_papers/_form.html.erb +++ b/app/views/admin/journal_papers/_form.html.erb @@ -145,7 +145,7 @@
- <%= select_year((@journal_paper.year ? @journal_paper.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'journal_paper[year]', :class => "span1"} ) %> + <%= select_year((@journal_paper.year ? @journal_paper.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'journal_paper[year]', :class => "span1"} ) %>