refactor: changed Certified Members to Certifications

This commit is contained in:
Jannat Patel
2025-10-06 10:33:50 +05:30
parent f7003ecbbe
commit 34c0d16411
6 changed files with 22 additions and 13 deletions

View File

@@ -336,8 +336,8 @@ const tabsStructure = computed(() => {
type: 'checkbox',
},
{
label: 'Certified Members',
name: 'certified_members',
label: 'Certifications',
name: 'certifications',
type: 'checkbox',
},
{

View File

@@ -422,7 +422,7 @@ export function getSidebarLinks() {
activeFor: ['Batches', 'BatchDetail', 'Batch', 'BatchForm'],
},
{
label: 'Certified Members',
label: 'Certifications',
icon: 'GraduationCap',
to: 'CertifiedParticipants',
activeFor: ['CertifiedParticipants'],

View File

@@ -507,7 +507,7 @@ def get_sidebar_settings():
items = [
"courses",
"batches",
"certified_members",
"certifications",
"jobs",
"statistics",
"notifications",

View File

@@ -35,8 +35,8 @@
"items_in_sidebar_section",
"courses",
"batches",
"certified_participants",
"certified_members",
"certifications",
"programming_exercises",
"column_break_exdz",
"jobs",
@@ -279,13 +279,6 @@
"fieldtype": "Check",
"label": "Batches"
},
{
"default": "1",
"fieldname": "certified_participants",
"fieldtype": "Check",
"hidden": 1,
"label": "Certified Participants"
},
{
"default": "1",
"fieldname": "jobs",
@@ -403,6 +396,7 @@
"default": "0",
"fieldname": "certified_members",
"fieldtype": "Check",
"hidden": 1,
"label": "Certified Members"
},
{
@@ -439,13 +433,19 @@
"fieldname": "contact_us_url",
"fieldtype": "Data",
"label": "Contact Us URL"
},
{
"default": "0",
"fieldname": "certifications",
"fieldtype": "Check",
"label": "Certifications"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2025-10-03 17:41:30.904723",
"modified": "2025-10-06 10:27:41.117864",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Settings",

View File

@@ -112,3 +112,4 @@ lms.patches.v2_0.move_batch_instructors_to_evaluators
lms.patches.v2_0.enable_programming_exercises_in_sidebar
lms.patches.v2_0.count_in_program
lms.patches.v2_0.fix_scorm_lesson_reference_idx #02-09-2025
lms.patches.v2_0.certified_members_to_certifications #05-10-2025

View File

@@ -0,0 +1,8 @@
import frappe
def execute():
show_certifications = frappe.db.get_single_value("LMS Settings", "certified_members")
if show_certifications:
frappe.db.set_single_value("LMS Settings", "certifications", 1)