{% extends "admin/components/datatable.html" %} {% block title %} SKA Referee Test | Manage Exams {% endblock %} {% block content %}

Manage Exams

{% if tests %} {% for test in tests %} {% endfor %}
Date Created Exam Code Expiry Date Time Limit Created By Actions
{{ test.date.date() }} {{ '—'.join([test.test_code[:4], test.test_code[4:8], test.test_code[8:]]) }} {{ test.expiry }} {% if test.time_limit == None -%} None {% elif test.time_limit == '60' -%} 1 hour {% elif test.time_limit == '90' -%} 1 hour 30 min {% elif test.time_limit == '120' -%} 2 hours {% else -%} {{ test.time_limit }} {% endif %} {{ test.creator }}
{% block custom_data_script %} {% endblock %} {% else %}
No exams have been created. Use the form below to create an exam.
{% endif %}
{{ form.hidden_tag() }}
{{ form.expiry(placeholder="Enter Expiry Date", class_ = "datepicker") }} {{ form.expiry.label }}
{{ form.time_limit(placeholder="Select Time Limit") }} {{ form.time_limit.label }}
{% include "admin/components/client-alerts.html" %}
{% endblock %}