{% extends "server/base.html" %} {% import "server/icons.html" as icons %} {# a part of the settings page, under its top bar #} {% block top %}{% endblock %} {% block title %}{{ role.name if role else t.text("access.roles.new") }}{% endblock %} {% block head %}{% endblock %} {% block body %}
{{ icons.icon("chevron-left") }}{{ t.text("access.roles") }}
{% for module, points in groups.items() %}
{{ t.text(module) }} {% for point in points %} {% endfor %}
{% endfor %} {% if error %}{% endif %}
{% if role %}
{% if default and default.id == role.id %}

{{ t.text("access.roles.is_default") }}

{% else %}
{% endif %}
{% if default and default.id == role.id %}
{{ icons.icon("chevron-down") }}
{% endif %}
{% endif %}
{% endblock %}