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

Manage Exams

{% if active_tests %} {% for test in active_tests %} {% endfor %}
Active Tests
Start Date Exam Code Expiry Date Time Limit Results Actions
{{ test.date.strftime('%d %b %Y') }} {{ '—'.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 }}
{% else %}
There are no active exams. Use the form below to create an exam.
{% endif %} {% block custom_data_script %} {% endblock %}
{{ form.hidden_tag() }}
{{ 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") }} {{ form.time_limit.label }}
{% include "admin/components/client-alerts.html" %}
{% endblock %}