From 004926ce871554b228da680527e3a3e0c9606601 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 28 Sep 2020 22:51:43 +0800 Subject: [PATCH] Change year from current year to current year plus 5. --- app/views/admin/courses/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/courses/_form.html.erb b/app/views/admin/courses/_form.html.erb index d3ec6ae..709ce53 100644 --- a/app/views/admin/courses/_form.html.erb +++ b/app/views/admin/courses/_form.html.erb @@ -146,7 +146,7 @@
- <%= select_year((@course.year ? @course.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'course[year]',:class => 'span1'} ) %> + <%= select_year((@course.year ? @course.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year + 5, :end_year => 1930}, {:name => 'course[year]',:class => 'span1'} ) %>