1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Error display changed.

This commit is contained in:
Frédéric Sureau 2011-08-05 16:42:43 +02:00
parent 4e24edd5c9
commit 410c4596df

View file

@ -1,5 +1,5 @@
{% for errors in form.errors.values() %}
{% for error in errors %}
<p class="error">{{error}}</p>
{% for field_name, field_errors in form.errors.items() if field_errors %}
{% for error in field_errors %}
<p class="error">{{ form[field_name].label.text }}: {{ error }}</p>
{% endfor %}
{% endfor %}