{% extends "permafrost/base.html" %} {% load i18n %} {% load static %} {% block content %}

{% trans 'Roles & Permissions' %}

{% comment %} TODO: add administration search filters 1. replace p tag (line 38 belwo) with form below 2. hook up to django filter form

{% trans 'Roles' %}

{% trans 'Add Role' %}

{% endcomment %}

{% trans 'Roles' %}

{% trans 'Add Role' %}

{% if object %}

{{ object.name }}

{% if object.description %}

{{ object.description }}

{% endif %}

{% trans 'Role Type' %}: {{ object.get_category_display }}

{% regroup permissions by content_type as content_type_list %}
{% for content_type, permission_list in content_type_list %}

{{ content_type.name }}

{% for permission in permission_list %} {{ permission.name }} {% if not forloop.last %}
{% endif %} {% endfor %}

{% endfor %}
{% endif %}
{% endblock %} {% block extra_js %} {% comment %} # Possible placeholder for infinite scroll {% endcomment %} {% endblock %}