dev_SaaS
cxt 6 years ago
parent 4859ce7046
commit f9351e259d

@ -430,6 +430,8 @@ class EcCoursesController < ApplicationController
{score: 70, level: ""}, {score: 70, level: ""},
{score: 60, level: ""}] {score: 60, level: ""}]
end end
Rails.logger.info("template_major: #{@template_major}")
Rails.logger.info("is_manager: #{@is_manager}")
render :json => {levels: ls, is_manager: @is_manager} render :json => {levels: ls, is_manager: @is_manager}
} }
end end
@ -596,6 +598,9 @@ class EcCoursesController < ApplicationController
end end
end end
Rails.logger.info("template_major: #{@template_major}")
Rails.logger.info("is_manager: #{@is_manager}")
return {ec_year_id: @ec_course.ec_year_id, ec_course_id: @ec_course.id, course_targets: targets, return {ec_year_id: @ec_course.ec_year_id, ec_course_id: @ec_course.id, course_targets: targets,
requirements: requirements, is_manager: @is_manager} requirements: requirements, is_manager: @is_manager}
end end

@ -82,7 +82,7 @@ class EcYearsController < ApplicationController
import_url = "/ec_major_schools/#{@ec_major_school.id}/academic_years/#{@year.id}/import_students" import_url = "/ec_major_schools/#{@ec_major_school.id}/academic_years/#{@year.id}/import_students"
render :json => {template_url: template_url, ec_students: ec_students, total_page: total_page, import_url: import_url, render :json => {template_url: template_url, ec_students: ec_students, total_page: total_page, import_url: import_url,
show_name: show_name, :total_student => total_student} show_name: show_name, :total_student => total_student, :is_manager => @template_major}
} }
end end
end end

Loading…
Cancel
Save