{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Roles - Pychestrate Configuration{% endblock %} {% block content %}
{{ ui.icon("download") }} Download CSV {% if may_change_roles %} {{ ui.icon("add") }} Create Role {% endif %}
{% for role in roles %} {% else %} {{ ui.empty_state("No roles found", colspan=6) }} {% endfor %}
Name Description Type Permissions Assigned Actions
{{ role.name }} {{ role.description or '—' }} {% if role.is_system %} Built-in {% else %} Custom {% endif %} {{ role.permissions | length }} permissions {{ role.binding_count }} user{{ '' if role.binding_count == 1 else 's' }}
{% if may_change_roles %} {% if not role.is_system %} Edit {% endif %} Copy {% if not role.is_system %}
{% endif %} {% elif role.is_system %} Built-in role {% endif %}
{% endblock %}