|
|
|
@ -20,10 +20,14 @@ class Admins::CompetitionSettingsController < Admins::BaseController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def basic_form_params
|
|
|
|
|
params.permit(:identifier, :name, :sub_title, :sponsor_schools, :region_schools, :start_time, :end_time, :mode, :identifier, :bonus, :awards_count, :description, :course_id, :teach_start_time, :teach_end_time)
|
|
|
|
|
params.permit(:identifier, :name, :sub_title, :start_time, :end_time, :mode,
|
|
|
|
|
:identifier, :bonus, :awards_count, :description, :course_id, :teach_start_time,
|
|
|
|
|
:teach_end_time, sponsor_schools: [], region_schools: [])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def nav_form_params
|
|
|
|
|
params.permit(:enroll_end_time, competition_staffs: %i[category minimum maximum mutiple_limited], navbar: %i[module_type name hidden position url])
|
|
|
|
|
params.permit(:enroll_end_time,
|
|
|
|
|
competition_staffs: %i[category minimum maximum mutiple_limited],
|
|
|
|
|
navbar: %i[module_type name hidden position url])
|
|
|
|
|
end
|
|
|
|
|
end
|