{# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for #} {# more information about the licensing of this file. #} {% extends "layout.html" %} {% set username = submission['username'][0] %} {% set user_realname= user_manager.get_user_realname(username) %} {% block title %} {{task.get_name(user_manager.session_language()) }} - {{ user_realname }} - {{ course.get_name(user_manager.session_language()) }} {% endblock %} {% block column %} {{ template_helper.call('course_admin_menu',course=course,current='submissions') | safe }} {% endblock %} {% block navbar %} {% endblock %} {% block content %} {% set is_admin = user_manager.has_admin_rights_on_course(course) %} {% set course_tags = course.get_tags() %} {% set task_categories = task.get_categories() %}

{{ _("Submission {}").format(str(submission['_id'])[0:10])}} - "{{ task.get_name(user_manager.session_language()) }}" - {{ user_realname }} ({{username}})

{{ _("This page show what was shown to the student when (s)he made his/her submission.") }}
{% if "result" in submission %} {% endif %} {% if is_admin %}
{% endif %}
{% if is_admin %}
{% endif %}
{{ task.get_context(user_manager.session_language()) | safe }}
{% set ns = namespace(visible_tags=[]) %} {% for category in task_categories %} {% if course_tags[category].is_visible_for_student() or user_manager.has_staff_rights_on_course(course) %} {% set ns.visible_tags = ns.visible_tags + [course_tags[category]] %} {% endif %} {% endfor %} {# Auto tags may appear for admins. So we force the h3 title even if there is not predefined tags #} {# We do not show the tag header for students if they can not get tags #} {% if visible_tags|length > 0 %}

{{ _("Tags") }}

{% for tag in visible_tags %} {% if tag.get_type() == 0 %} {{ tag.get_name(user_manager.session_language()) }} {% elif tag.get_type() == 1 %} {% endif %} {% endfor %}
{% endif %}
{% set task_problems={} %} {% for problem in task.get_problems() %} {% set problem = task_problems.update({problem.get_id(): problem}) %} {% endfor %} {% for problem in to_display %} {% set key = loop.index %}
Question {{key}}: {{problem["name"]}}
{% if problem["id"] in task_problems %} {{ task_problems[problem["id"]].show_input(template_helper, user_manager.session_language(), username) | safe }} {% elif not problem["defined"] %} {{_("This problem id is not defined in the task.")}} {% else %} {{_("This problem is not present in the submission.")}} {% endif %}
{% endfor %}
{% endblock %}