增加作品分类下拉框

GitlabVersion
sw 11 years ago
parent 64f025fe70
commit 93d8fd31a0

@ -173,6 +173,18 @@ module ContestsHelper
end
tmp
end
#作品分类下拉框
def work_type_opttion
type = []
#work_types = WorksCategory.all
WorksCategory.all.each do |work_type|
option = []
option << work_type.category
option << work_type.category
type << option
end
type
end
end
Loading…
Cancel
Save