1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/budget/templates/add_bill.html

31 lines
1,013 B
HTML
Raw Normal View History

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>
2011-07-31 00:41:28 +02:00
<ul>
{% for field, errors in form.errors.items() %}
{% for error in errors %}
<li>{{ field }} : {{ error }}</li>
{% endfor %}
{% endfor %}
</ul>
2011-03-10 03:37:21 +01:00
{% endif %}
<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 %}