From f68571900e25637432f8240323c269418d87e6a7 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Thu, 25 Nov 2021 10:34:01 +0000 Subject: [PATCH] Working version of test tables --- ref-test/admin/templates/admin/tests.html | 81 ++++++++++++----------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/ref-test/admin/templates/admin/tests.html b/ref-test/admin/templates/admin/tests.html index 5a3f4e9..7b671b2 100644 --- a/ref-test/admin/templates/admin/tests.html +++ b/ref-test/admin/templates/admin/tests.html @@ -2,25 +2,27 @@ {% block title %} SKA Referee Test | Manage Exams {% endblock %} {% block content %}

Manage Exams

- - {% if tests %} - + {% if active_tests %} +
+ - - + - - - {% for test in tests %} + {% for test in active_tests %}
+ Active Tests +
- Date Created - - Exam Code + + Start Date + Exam Code + Expiry Date + Time Limit - Created By + + Results Actions @@ -28,10 +30,10 @@
- {{ test.date.date() }} + {{ test.date.strftime('%d %b %Y') }} {{ '—'.join([test.test_code[:4], test.test_code[4:8], test.test_code[8:]]) }} @@ -79,41 +81,46 @@ {% endfor %}
- {% block custom_data_script %} - - {% endblock %} {% else %}
- No exams have been created. Use the form below to create an exam. + There are no active exams. Use the form below to create an exam.
{% endif %} + + {% block custom_data_script %} + + {% endblock %}