新建、修改课程年份从当前年份开始

This commit is contained in:
sw 2014-09-27 15:30:01 +08:00
parent 79f3c8efb3
commit 8aec3fe8f5
1 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,8 @@ module CoursesHelper
#课程实践年份下拉框
def course_time_option
type = []
#work_types = WorksCategory.all
for i in (2008..2020)
now_year = Time.now.year
for i in (now_year..now_year + 10)
option = []
option << i
option << i