fix: certified participants page mobile layout

This commit is contained in:
Jannat Patel
2024-05-07 19:03:27 +05:30
parent 98c748359a
commit b4cc0c6807
8 changed files with 53 additions and 34 deletions

View File

@@ -359,3 +359,14 @@ def get_certified_participants(search_query=""):
details["courses"] = courses
participant_details.append(details)
return participant_details
@frappe.whitelist()
def get_certificates(member):
"""Get certificates for a member."""
return frappe.get_all(
"LMS Certificate",
filters={"member": member},
fields=["name", "course", "course_title", "issue_date", "template"],
order_by="creation desc",
)

View File

@@ -1520,10 +1520,12 @@ def get_question_details(question):
@frappe.whitelist(allow_guest=True)
def get_batch_courses(batch):
courses = []
course_list = frappe.get_all("Batch Course", {"parent": batch}, pluck="course")
course_list = frappe.get_all("Batch Course", {"parent": batch}, ["name", "course"])
for course in course_list:
courses.append(get_course_details(course))
details = get_course_details(course.course)
details.batch_course = course.name
courses.append(details)
return courses

View File

@@ -97,7 +97,7 @@ def get_meta(app_path):
as_dict=True,
)
return {
"title": job_opening.title,
"title": job_opening.job_title,
"image": job_opening.company_logo,
"description": job_opening.company_name,
"keywords": "Job Openings, Jobs, Vacancies",