diff --git a/app/templates/components/form.html b/app/templates/components/form.html index b078ec9148..09aacedadc 100644 --- a/app/templates/components/form.html +++ b/app/templates/components/form.html @@ -9,6 +9,7 @@ module=None, show_validation_summary=False, form=None, + field_order=None, data_kwargs={} ) %}
{% if show_validation_summary %} - {{ validation_summary(form) }} + {{ validation_summary(form, field_order) }} {% endif %} {{ caller() }}
diff --git a/app/templates/components/validation-summary.html b/app/templates/components/validation-summary.html index 246eb4ba76..dc4308e43b 100644 --- a/app/templates/components/validation-summary.html +++ b/app/templates/components/validation-summary.html @@ -1,9 +1,22 @@ -{% macro validation_summary(form=None) %} +{% macro validation_summary(form=None, field_order=None) %} {% if form and form.errors %}