From f867022207e3466ef6eeff6f4da90f9d24a0ace1 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Tue, 7 Dec 2021 06:42:46 +0000 Subject: [PATCH] Remove personal data from document --- ref-test/admin/templates/admin/index.html | 148 ++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 ref-test/admin/templates/admin/index.html diff --git a/ref-test/admin/templates/admin/index.html b/ref-test/admin/templates/admin/index.html new file mode 100644 index 0000000..fe4f71d --- /dev/null +++ b/ref-test/admin/templates/admin/index.html @@ -0,0 +1,148 @@ +{% extends "admin/components/base.html" %} + +{% block content %} +

Dashboard

+
+
+
+
+
+
Current Exams
+ {% if current_tests %} +
+ + + + + + + + + {% for test in current_tests %} + + + + + {% endfor %} + +
+ Exam Code + + Expiry Date +
+ {{ '—'.join([test.test_code[:4], test.test_code[4:8], test.test_code[8:]]) }} + + {{ test.expiry_date.strftime('%d %b %Y') }} +
+
+ View Exams + {% else %} +
+ There are currently no active exams. +
+ Create Exam + {% endif %} +
+
+
+
+
+
+
Recent Results
+ {% if recent_results %} +
+ + + + + + + + + + {% for result in recent_results %} + + + + + + {% endfor %} + +
+ Name + + Date Submitted + + Result +
+ {{ result.name.surname }}, {{ result.name.first_name }} + + {{ result.submission_time.strftime('%d %b %Y %H:%M') }} + + {{ result.percent }}% ({{ result.results.grade }}) +
+
+ View Results + {% else %} +
+ There are currently no exam results to preview. +
+ {% endif %} +
+
+
+
+
+
+
+
+
Upcoming Exams
+ {% if upcoming_tests %} +
+ + + + + + + + + {% for test in upcoming_tests %} + + + + + {% endfor %} + +
+ Exam Code + + Expiry Date +
+ {{ '—'.join([test.test_code[:4], test.test_code[4:8], test.test_code[8:]]) }} + + {{ test.expiry_date.strftime('%d %b %Y') }} +
+
+ View Exams + {% else %} +
+ There are currently no upcoming exams. +
+ Create Exam + {% endif %} +
+
+
+
+
+
+
Help
+

This web app was developed by Vivek Santayana. If there are any issues with the app, any bugs you need to report, or any features you would like to request, please feel free to open an issue at the Git Repository.

+ Open an Issue +
+
+
+
+
+{% endblock %} \ No newline at end of file