{% if vpn_phase1_policies.errors %}
Please correct the error(s) below:
{% for policy in vpn_phase1_policies.forms %}
{% if policy.errors %}
{% for error in policy.errors.values %}{{ error }}{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{{ vpn_phase1_policies.non_field_errors }}
{{ vpn_phase1_policies.management_form }}
{% for policy_form in vpn_phase1_policies.forms %}
{% if forloop.first %}
{% for field in policy_form.visible_fields %}
| {{ field.label|capfirst }} |
{% endfor %}
{% endif %}
{% for field in policy_form.visible_fields %}
{% if forloop.first %}
{% for hidden in policy_form.hidden_fields %}
{{ hidden }}
{% endfor %}
{% endif %}
{{ field }}
{% if field.errors %}
{% for error in field.errors %}
{# Embed an HTML comment indicating the error for extraction by tests #}
- {{ error }}
{% endfor %}
{% endif %}
|
{% endfor %}
{% endfor %}