{% if valid %}
Validation passed - all fields are valid.
{% if checks %}
{{ checks|length }} check(s) passed {% endif %} {% set ns.current_field = check.field %}
  • {{ check.field }}
  • {% endif %}
    {% elif rules %}
    {{ rules|length }} rule(s) checked
    {% endif %} {% else %}
    Validation failed - {{ errors|length }} error(s) found:
    {% if checks %}
    {% 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 %} {% endif %} {% if rules %}
    {{ rules|length }} rule(s) checked
    {% endif %}
    {% endif %}