mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
30 lines
1,013 B
HTML
30 lines
1,013 B
HTML
{% extends "layout.html" %}
|
|
|
|
{% block top_menu %}
|
|
<a href="{{ url_for('list_bills', project_id=project.id) }}">Back to the list</a>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>Let's add a 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>
|
|
</form>
|
|
{% endblock %}
|