{% if user.is_staff and current_class %} You are currently teaching group {{current_class.number}}. The registration code for this class is:
{{current_class.ticket}}
Please distribute this code to everyone in class. It will register their attendance and unlock the in-class assignments.
{% csrf_token %}
{% endif %} {% if user.is_staff and not current_class %} You are currently not teaching any classes. Start a new class by entering a class number (e.g., PSY-01).
{% csrf_token %} Class number:
{% endif %} {% if not user.is_staff and current_class %} Your attendance to the class {{current_class.number}} has been registered. {% endif %} {% if not user.is_staff and not current_class %} Please enter a valid registration code to register your attendance. You will receive this code in class.
{% csrf_token %} {% if ticket_error %}
Invalid code
Registration Code: {% else %} Registration Code: {% endif %}
{% endif %} {% if user.is_staff and perms.autodidact.change_session %}
Show students from the past
{% endif %}