新建、修改课程年份从当前年份开始
This commit is contained in:
parent
79f3c8efb3
commit
8aec3fe8f5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue