aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/list_bills.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-03-10 17:32:53 +0000
committerAlexis Metaireau <alexis@notmyidea.org>2011-03-10 17:32:53 +0000
commitde708ce3efec2ab70b6b77781957766ae47f9068 (patch)
tree6b2b3b43caea782d894ce9874e9b6632f14ef7ff /budget/templates/list_bills.html
parentfc569241bea388de32b38aa907bf2e527cd5039b (diff)
downloadihatemoney-mirror-de708ce3efec2ab70b6b77781957766ae47f9068.zip
ihatemoney-mirror-de708ce3efec2ab70b6b77781957766ae47f9068.tar.gz
ihatemoney-mirror-de708ce3efec2ab70b6b77781957766ae47f9068.tar.bz2
reshape the folder structure. Add conf files
Diffstat (limited to 'budget/templates/list_bills.html')
-rw-r--r--budget/templates/list_bills.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
new file mode 100644
index 0000000..fba328e
--- /dev/null
+++ b/budget/templates/list_bills.html
@@ -0,0 +1,25 @@
+{% extends "layout.html" %}
+{% block content %}
+{% if bills.count() > 0 %}
+<table>
+<thead><tr><th>When ?</th><th>Who paid?</th><th>for what ?</th><th>Owers</th><th>How much ?</th></tr></thead>
+<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>
+</tr>
+{% endfor %}
+</tbody>
+</table>
+
+<a class="awesome large green button fleft" href="{{ url_for("compute_bills") }}">Compute bills</a>
+<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") }}">add a bill</a> ?</p>
+{% endif %}
+{% endblock %}