2011-03-10 03:37:21 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
2011-07-29 17:14:33 +02:00
|
|
|
{% block top_menu %}
|
|
|
|
<a href="{{ url_for('list_bills', project_id=project.id) }}">Back to the list</a>
|
|
|
|
{% endblock %}
|
|
|
|
|
2011-03-10 03:37:21 +01:00
|
|
|
{% block content %}
|
|
|
|
<h2>Let's add a bill</h2>
|
|
|
|
|
|
|
|
{% if form.errors %}
|
|
|
|
<p class=error><strong>Your form contains errors.</strong></p>
|
|
|
|
<ul>{% for error in form.errors %}<li>{{ error }}</li>{% endfor %}</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2011-07-23 15:54:23 +02:00
|
|
|
<form action="{{ url_for('add_bill', project_id=project.id) }}" method=post class="container span-24 add-bill">
|
2011-03-10 03:37:21 +01:00
|
|
|
{{ 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>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|