diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-07-31 23:55:02 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-07-31 23:55:02 +0200 |
| commit | 548101d8bbd5adff4887cfad8fc70d1a4cf82370 (patch) | |
| tree | 798470e44e9599a0adf2dea8e476b841418cb3f0 /budget/templates/add_bill.html | |
| parent | 37be0f4fa196de8c160f1ec59978fd3c15a8bf8d (diff) | |
| download | ihatemoney-mirror-548101d8bbd5adff4887cfad8fc70d1a4cf82370.zip ihatemoney-mirror-548101d8bbd5adff4887cfad8fc70d1a4cf82370.tar.gz ihatemoney-mirror-548101d8bbd5adff4887cfad8fc70d1a4cf82370.tar.bz2 | |
Some more theming and fixes.
Diffstat (limited to 'budget/templates/add_bill.html')
| -rw-r--r-- | budget/templates/add_bill.html | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html index f959a64..d844b6a 100644 --- a/budget/templates/add_bill.html +++ b/budget/templates/add_bill.html @@ -5,26 +5,11 @@ {% endblock %} {% block content %} -<h2>Let's add a bill</h2> +<h2>Add a new bill</h2> -{% if form.errors %} - <p class=error><strong>Your form contains errors.</strong></p> - <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"> - {{ form.hidden_tag() }} - - <p>{{ form.payer.label }}<br /> {{ form.payer }}</p> - <p>{{ form.what.label }}<br /> {{ form.what }}</p> - <p>{{ form.amount.label }}<br />{{ form.amount }}</p> - <p>{{ form.payed_for.label }}<br /> {{ form.payed_for(multiple=True) }}</p> - <p>{{ form.submit }}</p> +<div class="container span-24 add-bill uniForm" style="width: 400px"> + <form action="{{ url_for('add_bill', project_id=project.id) }}" method="post" class=uniForm"> + {{ forms.add_bill(form) }} </form> +</div> {% endblock %} |
