aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-07-31 00:41:28 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-07-31 00:41:28 +0200
commit2df6e11f05eff9bd855079097aa865f52689d7ca (patch)
tree6de593b6d68b2ee91c211af71a3168ba261293cf /budget/templates
parent3bbc3343a2409de3cccdd7f50360e631224bf066 (diff)
downloadihatemoney-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')
-rw-r--r--budget/templates/add_bill.html8
-rw-r--r--budget/templates/layout.html2
-rw-r--r--budget/templates/list_bills.html3
3 files changed, 9 insertions, 4 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">
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 25c5dd7..cd0fca4 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -9,11 +9,11 @@
<div class="container" class="span-24">
<div id="title">
<a href="/"><h1>Account manager ! <span class="small">Manage your shared expenses.</span></h1></a>
+ <hr>
<div class="fright" id="topmenu">
{% block top_menu %}{% endblock %}
</div>
</div>
- <hr>
{% for message in get_flashed_messages() %}
<div class=info>{{ message }}</div>
{% endfor %}
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index 8f07f9b..a26dccc 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -2,8 +2,7 @@
{% block top_menu %}
<ul>
- <li><a href="{{ url_for('add_bill', project_id=project.id) }}">Add a bill</a></li>
- <li><a href="{{ url_for('add_member', project_id=project.id) }}">Add a member</a></li>
+ <li><a class="awesome button" href="{{ url_for('add_bill', project_id=project.id) }}">Add a bill</a></li>
</ul>
{% endblock %}