{% extends "base.html" %} {% load i18n %} {% load account %} {% load bootstrap3 %} {% load dv_filters %} {% block head_title %}{% trans "Utilisateurs" %}{% endblock %} {% block bootstrap3_extra_script %} {% include 'snippets/datetimepicker_js.html' %} {% endblock %} {% block content %} {% if filter.form %} {% endif %}
{% if request.user|can:"user_view_list" %} {% include 'export_buttons.html' with exporturl='user-list-export' filter_querystring=filter_querystring only %} {% endif %} {% if filter.form %} {% include 'user_search_form.html' %} {% endif %}
{% for user in users %} {% endfor %}
{% trans "Prénom" %} {% trans "Nom" %} {% trans "Email" %} {% trans "Natel" %} {% trans "Statut" %} {% trans "Cantons" %} {% trans "Langues" %} {% trans "Rôle" %} {# Boutons #}
{% if request.user|can:'user_detail_other' %}{{ user.first_name }}{% else %}{{ user.first_name }}{% endif %} {% if request.user|can:'user_detail_other' %}{{ user.last_name }}{% else %}{{ user.last_name }}{% endif %} {{ user.email }} {% if user.profile.natel %}{{ user.profile.natel|tel_link }}{% elif user.profile.phone %}{{ user.profile.phone|tel_link }}{% endif %} {{ user.profile.status_icon|safe }} {{ user.profile.affiliation_canton|canton_abbr }}{% if user.profile.activity_cantons %}, {{ user.profile.activity_cantons|cantons_abbr|join:", " }}{% endif %} {{ user.profile.language }}{% if user.profile.languages_challenges %}, {{ user.profile.languages_challenges|join:", " }}{% endif %} {{ user.profile.formation_icon|safe }} {{ user.profile.actor_icon|default:"" }} {% if not user.profile.deleted %} {% if request.user == user or request.user|can:"user_edit_other" and request.user|inusercantons:user.profile.affiliation_canton %} {% endif %} {% if user.profile.can_login %} {{ user.profile.access_level_icon }} {% else %} {% if request.user|can:"user_can_send_credentials" and request.user.pk != user.pk and request.user|inusercantons:user.profile.affiliation_canton %} {% endif %} {% endif %} {% endif %}
{% include 'paginator.html' with page_obj=page_obj listurl='user-list' filter_querystring=filter_querystring %} {% if request.user|can:"user_create" %}
{% trans "Nouvel utilisateur" %}
{% endif %} {% if request.user|can:"user_mark_inactive" %}
{% trans "Rendre tous les moniteurs inactifs" %}
{% endif %} {% endblock %}