|
|
@ -290,7 +290,8 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
def apply_teachers
|
|
|
|
def apply_teachers
|
|
|
|
search_str = params[:search].present? ? params[:search].strip : ""
|
|
|
|
search_str = params[:search].present? ? params[:search].strip : ""
|
|
|
|
@applications = CourseMessage.unhandled_join_course_requests_by_course(@course).joins(:user).
|
|
|
|
@applications = CourseMessage.unhandled_join_course_requests_by_course(@course).
|
|
|
|
|
|
|
|
joins("join users on course_messages.course_message_id=users.id").
|
|
|
|
where("LOWER(concat(users.lastname, users.firstname)) LIKE ?", "%#{search_str}%")
|
|
|
|
where("LOWER(concat(users.lastname, users.firstname)) LIKE ?", "%#{search_str}%")
|
|
|
|
@teacher_list_size = @course.teachers.size
|
|
|
|
@teacher_list_size = @course.teachers.size
|
|
|
|
@applications_size = CourseMessage.unhandled_join_course_requests_by_course(@course).size
|
|
|
|
@applications_size = CourseMessage.unhandled_join_course_requests_by_course(@course).size
|
|
|
|