From a0bc6e5ce676232e098302588b999f3ca6f5d10a Mon Sep 17 00:00:00 2001 From: Prathamesh Date: Thu, 11 Jan 2024 15:29:42 +0530 Subject: Separate page for vertification details --- website/cgen/templates/verification.html | 20 ---------------- website/cgen/templates/verification_details.html | 29 ++++++++++++++++++++++++ website/cgen/views.py | 2 +- 3 files changed, 30 insertions(+), 21 deletions(-) create mode 100755 website/cgen/templates/verification_details.html diff --git a/website/cgen/templates/verification.html b/website/cgen/templates/verification.html index ad834a1..f7b19ee 100755 --- a/website/cgen/templates/verification.html +++ b/website/cgen/templates/verification.html @@ -31,26 +31,6 @@ - {% if has_details %} -
-
- Following are the details - - - {% for key, value in details.items %} - - - - - {% endfor %} - -
{{ key | title }}{{ value }}
-
- {{ description | safe }} -
-
- - {% endif %} {% endblock %} diff --git a/website/cgen/templates/verification_details.html b/website/cgen/templates/verification_details.html new file mode 100755 index 0000000..0d0ab56 --- /dev/null +++ b/website/cgen/templates/verification_details.html @@ -0,0 +1,29 @@ +{% extends 'base.html' %} + +{% block header%} + Certificate Verification +{% endblock %} +{% block content %} +
+ {% if has_details %} +
+
+ Following are the details + + + {% for key, value in details.items %} + + + + + {% endfor %} + +
{{ key | title }}{{ value }}
+
+ {{ description | safe }} +
+
+ + {% endif %} +
+{% endblock %} diff --git a/website/cgen/views.py b/website/cgen/views.py index c1dca5a..4d96c58 100644 --- a/website/cgen/views.py +++ b/website/cgen/views.py @@ -66,7 +66,7 @@ def verify(request, key=None): context['details'] = details context['has_details'] = details['Authentic'] context['description'] = description - return render(request, 'verification.html', context) + return render(request, 'verification_details.html', context) def upload_csv_participants(request, certificate_id): certificate = get_object_or_404(Certificate, pk=certificate_id) -- cgit