{# 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(user_manager.session_language()) }} {% endblock %} {% block column %} {{ template_helper.call('course_admin_menu',course=course,current='students') | safe }} {% endblock %} {% block navbar %} {% endblock %} {% block content %}

{{ _("User management") }}

{% set len_all_users = user_data|length %} {% set len_staff = course.get_staff()|length %} {% with user_data=user_data[len_staff:len_all_users], is_staff=False %}

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

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

{{ _("Audiences") }}

{% if "audiences" in error %} {%elif "audiences" in msg %} {% endif %}
{% set text = [_("My audience(s)"), _("Other audience(s)")] %} {% for ind in range(0,2) %} {% if audiences[ind] | length > 0 %} {% if audiences[0]|length > 0 and audiences[1]|length > 0 %} {% endif %} {%for audience in audiences[ind] %} {% endfor %} {% endif %} {% endfor %}
{{_("audience")}} {{_("# students")}} {{_("# task tried")}} {{_("# task done")}}
{% set audience_str = audience_list | map('string') | join(',') %}
{{ text[ind] }}
{{ audience["description"]}} {{ audience["students"] | length}} {{ audience["tried"] }} {{ audience["done"] }}
{% if not course.is_lti() %}

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


{% if "groups" in error %} {% elif "groups" in msg %} {% endif %}
    {% for username in other_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 %}