{% extends "admin/base_site.html" %} {% load i18n admin_urls static %} {% load pfp_submit_row pfp_filter_field from pfp_tags %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% block user_help %} To manage permissions:
  1. Select the role type (e.g. User, Group) to manage permissions for, and the model whose permissions you want to allocate.
  2. Use the permission filters to select the subset of permissions you want to work with. By default model level permissions are shown, to display field level permissions check the appropriate box, or select individual fields.
  3. Use the "Filter" button to apply chosen filters.
{% endblock %}
{% csrf_token %} {% block form_top %}{% endblock %}
{% if save_on_top %}{% block submit_buttons_top %}{% pfp_submit_row %}{% endblock %}{% endif %} {% if filter_form.errors %}

{% if filter_form.errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{{ filter_form.non_field_errors }} {% endif %} {% block permission_filter %}

Permission filters

{% pfp_filter_field perm_filter_form.model %} {% if perm_filter_form.model.data %} {% pfp_filter_field perm_filter_form.show_pfps %} {% pfp_filter_field perm_filter_form.permissions %} {% pfp_filter_field perm_filter_form.model_fields %} {% endif %}
{% endblock %}
{% block role_filter %}

Role filters

    {{ role_filter_form.as_ul }}
{% endblock %} {% block pfp_select_form %} {% if perm_formset %}

Permission assignment

{{ perm_formset.management_form }} {% if perm_formset.total_error_count %}

{% if perm_formset.total_error_count|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{% endif %} {% for form in perm_formset %} {% for perm in form.permissions %}{% endfor%} {% endfor %}
Role namePermissions
{{ form.initial.role_name }}{{ form.role_name }}{{ form.role_id }}{{ perm }}
{% block pagination %} {% endblock %}
{% endif %} {% endblock %} {% block submit_buttons_bottom %}{% pfp_submit_row %}{% endblock %}
{% endblock %}