diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-07-31 00:41:28 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-07-31 00:41:28 +0200 |
| commit | 2df6e11f05eff9bd855079097aa865f52689d7ca (patch) | |
| tree | 6de593b6d68b2ee91c211af71a3168ba261293cf /budget/templates/add_bill.html | |
| parent | 3bbc3343a2409de3cccdd7f50360e631224bf066 (diff) | |
| download | ihatemoney-mirror-2df6e11f05eff9bd855079097aa865f52689d7ca.zip ihatemoney-mirror-2df6e11f05eff9bd855079097aa865f52689d7ca.tar.gz ihatemoney-mirror-2df6e11f05eff9bd855079097aa865f52689d7ca.tar.bz2 | |
Adding a bill is now working properly
Diffstat (limited to 'budget/templates/add_bill.html')
| -rw-r--r-- | budget/templates/add_bill.html | 8 |
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"> |
