{% extends "permissions.html" %} {% block content %} {{ super() }}
{# TRANS: This is a heading for a section of a page that deals with administering divisions. People who can see this have access to either modify the permissions in a division, or to create divisions. #}

{% trans %}Administer Divisions{% endtrans %}

{# TRANS: In an overview table of divisions, this is the heading for the column with the names of divisions. #} {# TRANS: In an overview table of divisions, this is the heading for the column showing the number of people or groups granted the 'submit' permission, meaning the can submit requests. #} {# TRANS: In an overview table of divisions, this is the heading for the column showing the number of people or groups granted the 'review' permission, meaning they can evaluate submitted requests. #} {# TRANS: In an overview table of divisions, this is the heading for the column showing the number of people or groups granted the 'pay' permission, meaning they can mark requests as paid. #} {# TRANS: In an overview table of divisions, this is the heading for the column showing the number of people or groups granted the 'audit' permission, meaning they are able to view all requests in a division, but not modify them in any way. #} {# TRANS: In an overview table of divisions, this is the heading for the column showing the number of people or groups granted the 'admin' permission, meaning they can manage who has been granted the other permissions. #} {% if divisions %} {% for division in divisions %} {% for perm in (PermissionType.submit, PermissionType.review, PermissionType.pay, PermissionType.audit, PermissionType.admin) %} {% endfor %} {% endfor %} {% endif %}
{% trans %}Division Name{% endtrans %}{% trans %}Submitters{% endtrans %}{% trans %}Reviewers{% endtrans %}{% trans %}Payers{% endtrans %}{% trans %}Auditors{% endtrans %}{% trans %}Admins{% endtrans %}
{{ division.name }}{{ division.permissions[perm]|length|numberfmt }}
{% if current_user.admin %} {# TRANS: This is a button for creating a new division. #} {% trans %}Add Division{% endtrans %} {% endif %}
{% endblock content %}