From 9eb01a5e8d3922699333c12231b0ff1d5da7fd52 Mon Sep 17 00:00:00 2001 From: wmcheng Date: Fri, 30 Nov 2018 19:56:39 +0800 Subject: [PATCH] Update _form.html.erb start_year plus 5 for user selection tab --- app/views/admin/honors/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/honors/_form.html.erb b/app/views/admin/honors/_form.html.erb index 3bbf982..54c6855 100644 --- a/app/views/admin/honors/_form.html.erb +++ b/app/views/admin/honors/_form.html.erb @@ -109,7 +109,7 @@
- <%= select_year(@honor.year, {:start_year => DateTime.now.year, :end_year => 1930, :prompt => "Choose year"}, {:name => 'honor[year]', :class => "span1"} ) %> + <%= select_year(@honor.year, {:start_year => (DateTime.now.year+5), :end_year => 1930, :prompt => "Choose year"}, {:name => 'honor[year]', :class => "span1"} ) %>