{% extends 'generic/object.html' %} {% load i18n %} {% load plugins %} {% load render_table from django_tables2 %} {% block content %}

{% trans "Policy" %}

{% trans "Name" %}{{ object.name }}
{% trans "Description" %}{{ object.description|placeholder }}
{% trans "Enabled" %}{% checkmark object.enabled %}
{% trans "Weight" %}{{ object.weight }}
{% plugin_left_page object %}

{% trans "Scope" %}

{% trans "Object types" %} {% for ot in object.object_types.all %} {{ ot.app_label }}.{{ ot.model }} {% empty %} {% trans "Every object type" %} {% endfor %}
{% trans "Conditions" %} {% if object.conditions %}
{{ object.conditions|json }}
{% trans "Evaluated against:" %} {{ object.get_condition_state_display|lower }}
{% else %}{{ ''|placeholder }}{% endif %}
{% trans "Required checks" %} {% for name in object.checks %} {{ name }} {% empty %} {% trans "Only the checks which apply everywhere" %} {% endfor %}
{% plugin_right_page object %}

{% trans "Rules" %}

{% render_table rules_table 'inc/table.html' %}
{% plugin_full_width_page object %}
{% endblock %}