{# 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" %} {% block title %} {{ course.get_name(session.language) }} {% endblock %} {% block column %} {% with current='students' %} {% include 'course_admin/menu.html' %}{% endwith %} {% endblock %} {% block navbar %} {% endblock %} {% block content %}

{{ _("User management") }}

{% with usernames=student_list, is_staff=False %}

{{ _("Number of students") }} : {{ student_list | length }}

{% include "course_admin/student_list_table.html" %} {% endwith %} {% if user_manager.has_admin_rights_on_course(course) %}
{% with course_id=course.get_id(), current_users=[], name="username", id="username_search", placeholder=_("Enter something here to search for a user"), single=True %} {% include "course_admin/user_selection_box.html" %} {% endwith %}
{% endif %}
{% with usernames=staff_list, is_staff=True %} {% include "course_admin/student_list_table.html" %} {% endwith %}

{{ _("Audiences") }}

{% if "audiences" in error %} {%elif "audiences" in msg %} {% endif %}
{% for audience in audiences.values() %} {% endfor %}
{{_("audience")}} {{_("# students")}} {{_("# task tried")}} {{_("# task done")}}
{% set audience_str = audiences | map('string') | join(',') %}
{% if session.username in audience.tutors %} {% endif %} {{ audience.description}} {{ audience.students | length}} {{ audience_progress[audience.id]["tried"] }} {{ audience_progress[audience.id]["succeeded"] }}
{% if not course.is_lti() %}

{{ _("Groups") }}
{{ _("Download structure") }}


{% if "groups" in error %} {% elif "groups" in msg %} {% endif %}
    {% for username in ungrouped_students %}
  • {% if users_info[username] is not none %} {{ users_info[username].realname }} ({{ username }}) {% else %} {{ username }} {% endif %}
  • {% endfor %}
{% for group in (groups + [None]) %} {% set index = loop.index - 1 %} {% if group is none %}
{% endif %}
{% endblock %}