{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge %} {% block content %} {% set breadcrumbs = [ {'text': _('Admin'), 'url': url_for('admin.admin_dashboard')}, {'text': _('Roles & Permissions'), 'url': url_for('permissions.list_roles')}, {'text': _('System Permissions')} ] %} {{ page_header( icon_class='fas fa-lock', title_text=_('System Permissions'), subtitle_text=_('All available permissions in the system'), breadcrumbs=breadcrumbs, actions_html='' + _('Back to Roles') + '' ) }}
{% for category, permissions in permissions_by_category.items() %}

{{ category.replace('_', ' ') }}

{{ permissions|length }} {{ _('permissions') }}

{% for permission in permissions %}

{{ permission.name.replace('_', ' ').title() }}

{{ permission.description or _('No description available') }}

{{ permission.name }}
{% endfor %}
{% endfor %}

{{ _('About Permissions') }}

{{ _('Permissions define what actions users can perform in the system. These permissions are assigned to roles, and roles are assigned to users. This provides a flexible and granular access control system.') }}

{% endblock %}