diff --git a/ref-test/admin/templates/admin/index.html b/ref-test/admin/templates/admin/index.html new file mode 100644 index 0000000..a44605b --- /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 anything you are unsure of, you can get in touch with Vivek via email.

+ Email +
+
+
+
+
+{% endblock %} \ No newline at end of file