{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Create Role - Pychestrate Configuration{% endblock %} {% block content %} {% if start_from_roles %}

Puts that role's permissions in the form below so you can adjust them. Nothing is saved until you choose Create Role.

{% endif %}
{% if copy_of %}

Copy of {{ copy_of.name }}: its {{ copy_of.permissions | length }} permission{{ '' if copy_of.permissions | length == 1 else 's' }} are ticked below. Give the copy a name and adjust what it allows, then choose Create Role.

{% endif %}
{{ ui.error_summary(errors, error_labels) }}
{{ ui.field_error(errors, 'name') }}
{% if permissions %}
{{ ui.permission_picker(permissions, form_data.getlist('permission_keys') if form_data else []) }}
{{ ui.field_error(errors, 'permission_keys') }}
{% endif %}
Cancel
{% include "site_shell/_permission_filter.html" %} {% endblock %}