From 978cd286f1d3c659c68f2ae69bad1b93ff5f4a3c Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 19:54:44 +0800 Subject: [PATCH] Update _form.html.erb start_year plus 5 for publication year selection tab --- app/views/admin/books/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/books/_form.html.erb b/app/views/admin/books/_form.html.erb index 347bbb7..4ec80b8 100644 --- a/app/views/admin/books/_form.html.erb +++ b/app/views/admin/books/_form.html.erb @@ -166,7 +166,7 @@
- <%= select_year((@book.year ? @book.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'book[year]',:class => 'span1'} ) %> + <%= select_year((@book.year ? @book.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'book[year]',:class => 'span1'} ) %>