fix: variable names for certificate template

This commit is contained in:
Jannat Patel
2026-04-06 18:20:24 +05:30
parent 0d8898576f
commit 717f9000f2
2 changed files with 4 additions and 4 deletions

View File

@@ -35,10 +35,10 @@ class LMSCertificate(Document):
custom_template = frappe.db.get_single_value("LMS Settings", "certification_template")
args = {
"student_name": self.member_name,
"member_name": self.member_name,
"course_name": self.course,
"course_title": frappe.db.get_value("LMS Course", self.course, "title"),
"certificate_name": self.name,
"name": self.name,
"template": self.template,
}

View File

@@ -1,5 +1,5 @@
<p>
{{ _("Dear ") }} {{ student_name }},
{{ _("Dear ") }} {{ member_name }},
</p>
<br>
<p>
@@ -10,7 +10,7 @@
{{ _("With this certification, you can now showcase your updated skills and share your achievement with your colleagues and on LinkedIn. To access your certificate, please click on the link provided below. Make sure you are logged in to the portal.") }}
</p>
<br>
<a href="/api/method/frappe.utils.print_format.download_pdf?doctype=LMS+Certificate&name={{certificate_name}}&format={{template | urlencode }}">{{ _("Certificate Link") }}</a>
<a href="/api/method/frappe.utils.print_format.download_pdf?doctype=LMS+Certificate&name={{name}}&format={{template | urlencode }}">{{ _("Certificate Link") }}</a>
<br>
<p>
{{ _("Once again, congratulations on this significant accomplishment.")}}