{% extends "base.html" %} {% load i18n %} {% load translations %} {% load permissions %} {% load crispy_forms_tags %} {% load humanize %} {% load icons %} {% block breadcrumbs %} {% if object.defining_project %}
  • {{ object.defining_project }}
  • {% trans "Access control" %}
  • {% else %}
  • {% trans "Manage" %}
  • {% trans "Teams" %}
  • {% endif %}
  • {{ object.name }}
  • {% endblock %} {% block content %} {% perm "meta:team.users" object as user_can_edit_team_users %}
    {% csrf_token %}
    {% if form %} {{ form | crispy }} {% else %}
    {% trans "Roles" %} {% include "auth/teams-roles.html" with group=object %}
    {% trans "Languages" %} {% include "auth/teams-languages.html" with group=object %}
    {% trans "Projects" %} {% include "auth/teams-projects.html" with group=object %}
    {% trans "Components" %} {% include "auth/teams-components.html" with group=object %}
    {% endif %}
    {% if form %}
    {{ auto_formset | crispy }}


    {% endif %} {% if user_can_edit_team_users %}

    {% documentation_icon 'admin/access' 'groups' right=True %} {% trans "Users" %}

    {% for user in users %} {% endfor %}
    {% trans "Username" %} {% trans "Full name" %} {% trans "Last sign in" %}
    {{ user.username }} {% if user in admins %} {% trans "Team administrator" %} {% endif %} {{ user.full_name }} {% if user.last_login %} {{ user.last_login|naturaltime }} {% else %} {% trans "Not yet signed in" %} {% endif %} {% if user in admins %} {% icon 'account-supervisor.svg' %} {% trans "Revoke administration" %} {% else %} {% icon 'account-supervisor.svg' %} {% trans "Grant administration" %} {% endif %} {% icon 'delete.svg' %} {% trans "Remove" %}
    {% if users.paginator.num_pages > 1 %} {% endif %}
    {% endif %}
    {% if form %} {% endif %}
    {% for user in users %}
    {% csrf_token %}
    {% endfor %}
    {% csrf_token %}
    {% endblock %}