{% 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.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 %} {% endfor %}
  • {% endif %} {% if inclass_assignments %}
  • In-class assignments:
  • {% for assignment in inclass_assignments %} {% 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 %} {% 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.
    {% csrf_token %}
    {% else %} You are currently not teaching any classes. Please enter the registration code of a class:
    {% csrf_token %} Registration code:
    {% endif %}
    Or start a new class by entering a class number (e.g., PSY-01).
    {% csrf_token %} Class number:
    {% elif present %} Your attendance to this session has been registered. {% else %} Please enter a valid registration code to register your attendance. You will receive this code in class.
    {% csrf_token %} Registration Code: {% endif %}
    {% endif %}

    Session {{session.nr}}: {{session.name}}

    {{session.description|markdown}}
    {% if request.user.is_staff and current_class %}

    Students in this class (refresh)

    {% for assignment in assignments %} {% endfor %} {% for student in students %} {% for percentage in student.progress %} {% endfor %} {% empty %} {% endfor %}
    StudentAssignment {{assignment.nr}}
    {{student}}
    {{percentage}}%
    No students have registered yet
    {% endif %}

    Your {% if current_class %}own{% endif %} progress in session {{session.nr}}:

    {% for assignment in assignments %} {% endfor %}
    {% if assignment.locked and not present and not current_class %} Assignment {{assignment.nr}}: {% else %} Assignment {{assignment.nr}}: {% endif %}
    {{assignment.percentage}}%

    Your answers:

    {% for answers_per_assignment in answers %} {% for answer in answers_per_assignment %} {% if answer %} {% endif %} {% endfor %} {% endfor %}

    Assignment {{forloop.counter}}

    Step {{forloop.counter}}) {% if answer == "mispoes" %}
    Required answer is missing
    {% else %}
    {{answer}}
    {% endif %}
    {% endblock %}