diff --git a/frontend/src/components/BatchCard.vue b/frontend/src/components/BatchCard.vue index f5525858..f187d0b2 100644 --- a/frontend/src/components/BatchCard.vue +++ b/frontend/src/components/BatchCard.vue @@ -36,19 +36,25 @@ :endDate="batch.end_date" class="mb-3" /> -
+
{{ formatTime(batch.start_time) }} - {{ formatTime(batch.end_time) }}
+
+ + + {{ batch.timezone }} + +
+ diff --git a/lms/www/lms.py b/lms/www/lms.py index 4f92c88f..6a75ce06 100644 --- a/lms/www/lms.py +++ b/lms/www/lms.py @@ -82,6 +82,14 @@ def get_meta(app_path): if re.match(r"^batches/.*$", app_path): batch_name = app_path.split("/")[1] + if "new/edit" in app_path: + return { + "title": _("New Batch"), + "image": frappe.db.get_single_value("Website Settings", "banner_image"), + "description": "Create a new batch", + "keywords": "New Batch, Create Batch", + "link": "/lms/batches/new/edit", + } batch = frappe.db.get_value( "LMS Batch", batch_name,