Validation passed - all fields are valid.
{% if checks %}
Validation failed - {{ errors|length }} error(s) found:
{% if checks %}
{% set ns = namespace(current_field='') %}
{% for check in checks|sort(attribute='field') %}
{% if check.field != ns.current_field %}
{% if ns.current_field != '' %}
{% endif %}
{% set ns.current_field = check.field %}
{{ check.field }}
{% endif %}
-
{% if check.passed %}
✓
{% else %}
✗
{% endif %}
{{ check.check }}
{% if check.message %}- {{ check.message }}{% endif %}
{% endfor %}
{% if ns.current_field != '' %}
{% endif %}
{% else %}
{% for error in errors %}
-
{{ error.field }}: {{ error.message }}
{% if error.rule %}({{ error.rule }}){% endif %}
{% endfor %}
{% endif %}
{% if rules %}
{{ rules|length }} rule(s) checked
{% for rule in rules %}
-
{{ rule.name }}
{% if rule.description %}- {{ rule.description }}{% endif %}
{% endfor %}
{% endif %}
{% endif %}