{% extends 'generic/object.html' %} {% load helpers %} {% load i18n %} {% block content %}
{% trans "Policy" %}
{% trans "Enabled" %} {{ object.enabled|yesno:"Yes,No" }}
{% trans "Approvals before apply" %} {{ object.min_pre_approvals }}
{% trans "Approvals before close" %} {{ object.min_post_approvals }} {% if not object.min_post_approvals %} {% trans "a PROCEED verdict closes on its own" %} {% endif %}
{% trans "Scope rules" %}
{# Scoped by the properties a NETWORK change has - role, site, tag - #} {# rather than by NetBox object type, because that is how an operator #} {# reasons about which changes need which approvers. #} {% if rules %}
    {% for rule in rules %}
  • {{ rule }}
  • {% endfor %}
{% else %}

{% trans "No rules: this policy applies to every change." %}

{% endif %}
{% endblock content %}