diff options
Diffstat (limited to 'budget/templates')
| -rw-r--r-- | budget/templates/add_bill.html | 8 | ||||
| -rw-r--r-- | budget/templates/layout.html | 2 | ||||
| -rw-r--r-- | budget/templates/list_bills.html | 3 |
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 %} |
