fix: renamed evaluation and certification buttons
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
frappe.ui.form.on("LMS Certificate Evaluation", {
|
frappe.ui.form.on("LMS Certificate Evaluation", {
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
if (!frm.is_new() && frm.doc.status == "Pass") {
|
if (!frm.is_new() && frm.doc.status == "Pass") {
|
||||||
frm.add_custom_button(__("Create LMS Certificate"), () => {
|
frm.add_custom_button(__("Create Certificate"), () => {
|
||||||
frappe.model.open_mapped_doc({
|
frappe.model.open_mapped_doc({
|
||||||
method: "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.create_lms_certificate",
|
method: "lms.lms.doctype.lms_certificate_evaluation.lms_certificate_evaluation.create_lms_certificate",
|
||||||
frm: frm,
|
frm: frm,
|
||||||
|
|||||||
@@ -4,15 +4,12 @@
|
|||||||
frappe.ui.form.on("LMS Certificate Request", {
|
frappe.ui.form.on("LMS Certificate Request", {
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
if (!frm.is_new() && frm.doc.status == "Upcoming") {
|
if (!frm.is_new() && frm.doc.status == "Upcoming") {
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(__("Conduct Evaluation"), () => {
|
||||||
__("Create LMS Certificate Evaluation"),
|
|
||||||
() => {
|
|
||||||
frappe.model.open_mapped_doc({
|
frappe.model.open_mapped_doc({
|
||||||
method: "lms.lms.doctype.lms_certificate_request.lms_certificate_request.create_lms_certificate_evaluation",
|
method: "lms.lms.doctype.lms_certificate_request.lms_certificate_request.create_lms_certificate_evaluation",
|
||||||
frm: frm,
|
frm: frm,
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (!frm.doc.google_meet_link && frm.doc.status == "Upcoming") {
|
if (!frm.doc.google_meet_link && frm.doc.status == "Upcoming") {
|
||||||
frm.add_custom_button(__("Generate Google Meet Link"), () => {
|
frm.add_custom_button(__("Generate Google Meet Link"), () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user