- {{ field }}
+ {% with describedby="hint_"|add:field.id_for_label %}
+ {% if field.errors %}
+ {% render_field field aria-invalid="true" aria-describedby=describedby %}
+ {% else %}
+ {% render_field field aria-describedby=describedby %}
+ {% endif %}
+ {% endwith %}
{% endblock %}
- {{ field.errors }}
+ {% if field.errors %}
+ {% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+ {% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{{ module.name }}
diff --git a/apps/ideas/templates/a4_candy_ideas/idea_update_form.html b/apps/ideas/templates/a4_candy_ideas/idea_update_form.html
index 03df4b816..f1f5ee2ef 100644
--- a/apps/ideas/templates/a4_candy_ideas/idea_update_form.html
+++ b/apps/ideas/templates/a4_candy_ideas/idea_update_form.html
@@ -30,7 +30,7 @@
{% trans 'Edit idea' %}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{% include "a4_candy_ideas/includes/idea_form.html" with idea=idea cancel=object.get_absolute_url %}
diff --git a/apps/mapideas/templates/a4_candy_mapideas/mapidea_create_form.html b/apps/mapideas/templates/a4_candy_mapideas/mapidea_create_form.html
index 9c08c0241..39a72f769 100644
--- a/apps/mapideas/templates/a4_candy_mapideas/mapidea_create_form.html
+++ b/apps/mapideas/templates/a4_candy_mapideas/mapidea_create_form.html
@@ -25,7 +25,7 @@
{% trans 'Submit a new idea for this project'%}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{{ module.name }}
diff --git a/apps/mapideas/templates/a4_candy_mapideas/mapidea_update_form.html b/apps/mapideas/templates/a4_candy_mapideas/mapidea_update_form.html
index 486367da7..d7d694421 100644
--- a/apps/mapideas/templates/a4_candy_mapideas/mapidea_update_form.html
+++ b/apps/mapideas/templates/a4_candy_mapideas/mapidea_update_form.html
@@ -30,7 +30,7 @@
{% trans 'Edit idea' %}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{% include "a4_candy_mapideas/includes/mapidea_form.html" with cancel=object.get_absolute_url %}
diff --git a/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_create_form.html b/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_create_form.html
index 1e37d361d..fed1d6787 100644
--- a/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_create_form.html
+++ b/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_create_form.html
@@ -6,7 +6,7 @@
{% trans 'Add a new offline event'%}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{% url 'a4dashboard:offlineevent-list' organisation_slug=project.organisation.slug project_slug=project.slug as cancel %}
diff --git a/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_update_form.html b/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_update_form.html
index 51eeb1084..a51ddf533 100644
--- a/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_update_form.html
+++ b/apps/offlineevents/templates/a4_candy_offlineevents/offlineevent_update_form.html
@@ -7,7 +7,7 @@
{% trans 'Edit offline event' %}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{% url 'a4dashboard:offlineevent-list' organisation_slug=project.organisation.slug project_slug=project.slug as cancel %}
diff --git a/apps/topicprio/templates/a4_candy_topicprio/topic_create_form.html b/apps/topicprio/templates/a4_candy_topicprio/topic_create_form.html
index e4376f541..2bc64826e 100644
--- a/apps/topicprio/templates/a4_candy_topicprio/topic_create_form.html
+++ b/apps/topicprio/templates/a4_candy_topicprio/topic_create_form.html
@@ -7,7 +7,7 @@
{% trans 'Add a new topic'%}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{% url 'a4dashboard:topic-list' organisation_slug=organisation.slug module_slug=module.slug as cancel %}
diff --git a/apps/topicprio/templates/a4_candy_topicprio/topic_update_form.html b/apps/topicprio/templates/a4_candy_topicprio/topic_update_form.html
index 37a90e1ee..8810d735f 100644
--- a/apps/topicprio/templates/a4_candy_topicprio/topic_update_form.html
+++ b/apps/topicprio/templates/a4_candy_topicprio/topic_update_form.html
@@ -7,7 +7,7 @@
{% trans 'Edit topic' %}
{% if form.errors %}
-
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
+
{% trans 'An error occured while evaluating your data. Please check the data you entered again.' %}
{% endif %}
{% url 'a4dashboard:topic-list' organisation_slug=project.organisation.slug module_slug=module.slug as cancel %}