summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrathamesh2024-01-11 15:29:42 +0530
committerPrathamesh2024-01-11 15:29:42 +0530
commita0bc6e5ce676232e098302588b999f3ca6f5d10a (patch)
tree402b4e9893786bfd5e19fe1311c948d4d9b4b6a7
parentaa089cd59e2736c6cb28e09658cb456d9e3fa79f (diff)
downloadcertificate-generation-a0bc6e5ce676232e098302588b999f3ca6f5d10a.tar.gz
certificate-generation-a0bc6e5ce676232e098302588b999f3ca6f5d10a.tar.bz2
certificate-generation-a0bc6e5ce676232e098302588b999f3ca6f5d10a.zip
Separate page for vertification details
-rwxr-xr-xwebsite/cgen/templates/verification.html20
-rwxr-xr-xwebsite/cgen/templates/verification_details.html29
-rw-r--r--website/cgen/views.py2
3 files changed, 30 insertions, 21 deletions
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 @@
<span class="input-group-btn"><button class="btn btn-lg btn-primary" type="submit">Verify</button></span>
</div>
</form>
- {% if has_details %}
- <br>
- <div>
- <caption> Following are the details</caption>
- <table class="table table-primary table-bordered" >
- <tbody>
- {% for key, value in details.items %}
- <tr>
- <td>{{ key | title }}</td>
- <td>{{ value }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- <div class="bg-white">
- {{ description | safe }}
- </div>
- </div>
-
- {% endif %}
</div>
{% 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 %}
+ <div style="margin-right:200px; margin-left:200px">
+ {% if has_details %}
+ <br>
+ <div>
+ <caption> Following are the details</caption>
+ <table class="table table-primary table-bordered" >
+ <tbody>
+ {% for key, value in details.items %}
+ <tr>
+ <td>{{ key | title }}</td>
+ <td>{{ value }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ <div class="bg-white">
+ {{ description | safe }}
+ </div>
+ </div>
+
+ {% endif %}
+ </div>
+{% 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)