From f9f70f208f179f1269ee09de089ef84e3cd97c48 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 29 Aug 2023 16:50:14 +0530 Subject: [PATCH] feat: certificate generation dialog --- .../lms_certificate/lms_certificate.json | 16 +++++++- lms/www/batches/batch.html | 4 +- lms/www/batches/progress.html | 6 ++- lms/www/batches/progress.js | 40 +++++++++++++++++++ lms/www/batches/progress.py | 4 +- lms/www/billing/billing.py | 4 ++ lms/www/courses/outline.html | 2 +- 7 files changed, 68 insertions(+), 8 deletions(-) diff --git a/lms/lms/doctype/lms_certificate/lms_certificate.json b/lms/lms/doctype/lms_certificate/lms_certificate.json index 263c7034..39206779 100644 --- a/lms/lms/doctype/lms_certificate/lms_certificate.json +++ b/lms/lms/doctype/lms_certificate/lms_certificate.json @@ -58,13 +58,13 @@ "fieldname": "batch_name", "fieldtype": "Link", "in_standard_filter": 1, - "label": "Batch Name", + "label": "Batch", "options": "LMS Batch" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-08-23 14:48:49.351395", + "modified": "2023-08-29 15:23:08.637215", "modified_by": "Administrator", "module": "LMS", "name": "LMS Certificate", @@ -81,6 +81,18 @@ "role": "System Manager", "share": 1, "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Moderator", + "share": 1, + "write": 1 } ], "sort_field": "modified", diff --git a/lms/www/batches/batch.html b/lms/www/batches/batch.html index 38e547df..b6398a26 100644 --- a/lms/www/batches/batch.html +++ b/lms/www/batches/batch.html @@ -116,6 +116,7 @@ {% endif %} + {% if is_moderator %} - {% if is_moderator %}