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 %}
{{ form.hidden_tag() }}
- {{ form.expiry(placeholder="Enter Expiry Date", class_ = "datepicker") }} - {{ form.expiry.label }} + {{ form.start_date(placeholder="Enter Start Date", class_ = "datepicker") }} + {{ form.start_date.label }} +
+
+ {{ form.expiry_date(placeholder="Enter Expiry Date", class_ = "datepicker") }} + {{ form.expiry_date.label }}
{{ form.time_limit(placeholder="Select Time Limit") }}