fix: certificate page UI

This commit is contained in:
Jannat Patel
2023-04-17 15:00:18 +05:30
parent 53d2e288d4
commit 8e8111d272
8 changed files with 90 additions and 87 deletions

View File

@@ -1,47 +0,0 @@
<div id="certificate-card" class="certificate-card">
<div class="certificate-content">
<div class="certificate-border">
<img src="{{ logo }}" class="certificate-logo">
<div>
{{ _("This certifies that") }}
</div>
<div class="certificate-name">
{{ member.full_name }}
</div>
<div>
{{ _("has successfully completed the course on") }}
<b> {{ course.title }} </b>
on {{ frappe.utils.format_date(certificate.issue_date, "medium") }}.
</div>
<table class="certificate-footer">
<tr>
{% if instructors %}
<td>
<div class="certificate-footer-item cursive-font">
{{ instructors }}
</div>
<hr class="certificate-divider">
<div class="text-center"> {{ _("Course Instructor") }} </div>
</td>
{% endif %}
{% if certificate.expiry_date %}
<td style="width: 30%;"></td>
<td>
<div class="certificate-footer-item">
{{ frappe.utils.format_date(certificate.expiry_date, "medium") }}
</div>
<hr class="certificate-divider">
<div class="text-center"> {{ _("Expiry date") }} </div>
</td>
{% endif %}
</tr>
</table>
</div>
</div>
</div>