{% extends 'base.html' %}
{% load markdown_tag %}
{% block navigation %}
Home
{{course.name}}
({{course.colloquial_name}}
)
Session {{session.nr}}
{% if preliminary_assignments %}
Preliminary assignments:
{% for assignment in preliminary_assignments %}
{% if assignment.active %}
{% if assignment.locked and not present and not current_class %}
Assignment {{assignment.nr}}: Locked {% if session.registration_enabled %} until class starts{% endif %}
{% else %}
Assignment {{assignment.nr}}: {{assignment.name}}
{% endif %}
{% elif request.user.is_staff %}
Assignment {{assignment.nr}}: {{assignment.name}}
{% endif %}
{% endfor %}
{% endif %}
{% if inclass_assignments %}
In-class assignments:
{% for assignment in inclass_assignments %}
{% if assignment.active %}
{% if assignment.locked and not present and not current_class %}
Assignment {{assignment.nr}}: Locked {% if session.registration_enabled %} until class starts{% endif %}
{% else %}
Assignment {{assignment.nr}}: {{assignment.name}}
{% endif %}
{% elif request.user.is_staff %}
Assignment {{assignment.nr}}: {{assignment.name}}
{% endif %}
{% endfor %}
{% endif %}
Downloads:
{% for file in session.downloads.all %}
{{file}}
{% empty %}
No downloads available
{% endfor %}
{% endblock %}
{% block editor %}
{% if perms.autodidact.change_session %}
Edit this session
{% endif %}
{% endblock %}
{% block content %}
{% if session.registration_enabled %}
{% if request.user.is_staff %}
{% if 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.
{% else %}
You are currently not teaching any classes. Please enter the registration code of a class:
{% endif %}
Or start a new class by entering a class number (e.g., PSY-01).
{% elif present %}
Your attendance to the class “{% for class in present%}{{class.number}}{% if not forloop.last %}, {% endif %}{% endfor %}” has been registered.
{% else %}
Please enter a valid registration code to register your attendance. You will receive this code in class.
{% endif %}
Session {{session.nr}}: {{session.name}}
{{session.description|markdown}}
{% if request.user.is_staff and current_class %}
Students in this class (refresh)
Student |
{% for assignment in assignments %}
Assignment {{assignment.nr}} |
{% endfor %}
{% for student in students %}
{{student}} |
{% for percentage in student.progress %}
{{percentage}}%
|
{% endfor %}
{% empty %}
No students have registered yet |
{% endfor %}
{% endif %}
Your {% if current_class %}own{% endif %} progress in session {{session.nr}}:
{% for assignment in assignments %}
{% if assignment.locked and not present and not current_class %}
Assignment {{assignment.nr}}:
{% else %}
Assignment {{assignment.nr}}:
{% endif %}
|
{{assignment.percentage}}%
|
{% endfor %}
|
|
Your answers:
{% for answers_per_assignment in answers %}
Assignment {{forloop.counter}}
|
{% for answer in answers_per_assignment %}
{% if answer %}
Step {{forloop.counter}})
|
{% if answer == "mispoes" %}
Required answer is missing
{% else %}
{{answer}}
{% endif %}
|
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}