{% extends "base.html" %} {% block content %}
{{ _('Back to Roles') }}

{% if role %} {{ _('Edit Role') }}: {{ role.name }} {% else %} {{ _('Create New Role') }} {% endif %}

{{ _('A unique name for this role') }}

{{ _('Optional description of this role') }}

{{ _('Permissions') }}

{{ _('Select the permissions this role should have:') }}

{% set categories = {} %} {% for permission in all_permissions %} {% if permission.category not in categories %} {% set _ = categories.update({permission.category: []}) %} {% endif %} {% set _ = categories[permission.category].append(permission) %} {% endfor %}
{% for category, perms in categories.items() %}

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

{% for permission in perms %} {% endfor %}
{% endfor %}
{{ _('Cancel') }}
{% endblock %}