{% load i18n %} {% for content_type, category in permission_categories.items %}

{{ category.name }}

{% for permission in category.optional %}
{{ permission.name }} {% if permission.short_description %} {% endif %}
{% endfor %}
{% empty %}
{# used for spacing when empty #}
{% endfor %}