From f3354ec72ab057bd6651a7ba215cd85a16e95b83 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 22:57:23 +0800 Subject: [PATCH] Update _form.html.erb start_year plus 5 for user tab selection --- app/views/admin/labs/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/labs/_form.html.erb b/app/views/admin/labs/_form.html.erb index 7aa5538..93bb6a4 100644 --- a/app/views/admin/labs/_form.html.erb +++ b/app/views/admin/labs/_form.html.erb @@ -149,7 +149,7 @@
- <%= select_year((@lab.year ? @lab.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'lab[year]', :class => 'span1'} ) %> + <%= select_year((@lab.year ? @lab.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'lab[year]', :class => 'span1'} ) %>