{% extends 'base.html' %} {% load static %} {% load markdown_tag %} {% block navigation %}
  • Home
  • {{course.name}}
    ({{course.colloquial_name}})
  • Session {{session.nr}}
  • Assignments:
  • {% for assignment in assignments %} {% if request.user.is_staff and not assignment.active %}
  • Assignment {{forloop.counter}}: {{assignment.name}}
  • {% elif request.user.is_staff and assignment.locked and not current_class %}
  • Assignment {{forloop.counter}}: Locked {% if session.registration_enabled %} until class starts{% endif %}
  • {% elif not assignment.active %} {% elif not present and assignment.locked and not current_class %}
  • Assignment {{forloop.counter}}: Locked {% if session.registration_enabled %} until class starts{% endif %}
  • {% else %}
  • Assignment {{forloop.counter}}: {{assignment.name}}
  • {% endif %} {% endfor %}
  • Downloads:
  • {% for file in session.downloads.all %}
  • {{file}}
  • {% empty %}
  • No downloads available
  • {% endfor %} {% endblock %} {% block editor %} {% if request.user.is_staff and 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 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.
    {% csrf_token %} {% if ticket_error %}
    Invalid code
    Registration Code: {% else %} Registration Code: {% endif %} {% endif %}
    {% endif %}

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

    {% for presentation in session.presentations.all %} {% if presentation.visibility == 1 and request.user.is_staff %} {% elif presentation.visibility == 2 and present or request.user.is_staff %} {% elif presentation.visibility == 3 %} {% endif %} {% endfor %} {{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 {{forloop.counter}}
    {{student}} {% if percentage >= 0 %}
    {{percentage}}%
    {% endif %}
    No students have registered yet
    {% else %}

    Your progress in session {{session.nr}}:

    {% for percentage in progress %} {% if percentage >= 0 %} {% endif %} {% endfor %}
    Assignment {{forloop.counter}}:
    {{percentage}}%

    Your answers:

    {% for answers_per_assignment in answers %} {% if answers_per_assignment %} {% endif %} {% 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 %}
    {% endif %} {% endblock %}