aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/add_bill.html
diff options
context:
space:
mode:
Diffstat (limited to 'budget/templates/add_bill.html')
-rw-r--r--budget/templates/add_bill.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html
index 8dec74c..f959a64 100644
--- a/budget/templates/add_bill.html
+++ b/budget/templates/add_bill.html
@@ -9,7 +9,13 @@
{% if form.errors %}
<p class=error><strong>Your form contains errors.</strong></p>
- <ul>{% for error in form.errors %}<li>{{ error }}</li>{% endfor %}</ul>
+ <ul>
+ {% for field, errors in form.errors.items() %}
+ {% for error in errors %}
+ <li>{{ field }} : {{ error }}</li>
+ {% endfor %}
+ {% endfor %}
+ </ul>
{% endif %}
<form action="{{ url_for('add_bill', project_id=project.id) }}" method=post class="container span-24 add-bill">