{% extends 'generic/object.html' %} {% load i18n %} {% load helpers %} {% load render_table from django_tables2 %} {% block title %}{% trans "Permission" %} {{ object.name }}{% endblock %} {% block subtitle %}{% endblock %} {% block content %}
{% trans "Permission" %}
{% trans "Name" %} {{ object.name }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Enabled" %} {% checkmark object.enabled %}
{% trans "Actions" %}
{% trans "View" %} {% checkmark object.can_view %}
{% trans "Add" %} {% checkmark object.can_add %}
{% trans "Change" %} {% checkmark object.can_change %}
{% trans "Delete" %} {% checkmark object.can_delete %}
{% trans "Constraints" %}
{% if object.constraints %}
{{ object.constraints|json }}
{% else %} None {% endif %}
{% trans "Object Types" %}
    {% for user in object.object_types.all %}
  • {{ user }}
  • {% endfor %}
{% trans "Assigned Users" %}
{% for user in object.users.all %} {{ user }} {% empty %}
{% trans "None" %}
{% endfor %}
{% trans "Assigned Groups" %}
{% for group in object.groups.all %} {{ group }} {% empty %}
{% trans "None" %}
{% endfor %}
{% endblock %}