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/list_bills.html

27 lines
1.1 KiB
HTML
Raw Normal View History

2011-03-10 03:37:21 +01:00
{% extends "layout.html" %}
{% block content %}
{% if bills.count() > 0 %}
<table>
2011-03-18 20:44:40 +01:00
<thead><tr><th>When ?</th><th>Who paid?</th><th>for what ?</th><th>Owers</th><th>How much ?</th><th>Actions</th></tr></thead>
2011-03-10 03:37:21 +01:00
<tbody>
{% for bill in bills %}
<tr class="{{ loop.cycle("odd", "even") }}">
<td>{{ bill.date }}</td>
<td>{{ bill.payer }}</td>
<td>{{ bill.what }}</td>
<td>{% for ower in bill.owers %}{{ ower.name }} {% endfor %}</td>
<td>{{ bill.amount }} ({{ bill.pay_each() }} each)</td>
<td><a href="{{ url_for("delete_bill", bill_id=bill.id, project_id=project.id) }}">delete</a></td>
2011-03-10 03:37:21 +01:00
</tr>
{% endfor %}
</tbody>
</table>
<a class="awesome large green button fleft" href="{{ url_for("compute_bills", project_id=project.id) }}">Compute bills</a>
2011-03-10 03:37:21 +01:00
<p> Periodically (probably at the end of each month, you can compute the balance of each people, in order to reset all the debts. You can also let this "as-is" and try to find a good balance, that's up to you</p>
{% else %}
<p>Nothing to list yet. You probably want to <a href="{{ url_for("add_bill", project_id=project.id) }}">add a bill</a> ?</p>
2011-03-10 03:37:21 +01:00
{% endif %}
{% endblock %}