aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/compute_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/compute_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/compute_bills.html')
-rw-r--r--budget/templates/compute_bills.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/budget/templates/compute_bills.html b/budget/templates/compute_bills.html
new file mode 100644
index 0000000..d1cad15
--- /dev/null
+++ b/budget/templates/compute_bills.html
@@ -0,0 +1,26 @@
+{% extends "layout.html" %}
+{% block content %}
+<h2>Computations</h2>
+
+<div class="container span-16">
+ <ol>
+ <li>For each person, get the list of bills he have to pay</li>
+ <li>Increase the amount this person have to pay</li>
+ <li>At the same time, increase what the payer of the bill have to receive</li>
+ <li>At the end, for each person, substract what he have to pay to what he have to receive</li>
+ </ol>
+</div>
+
+<div class="container span-6 last">
+ <a class="awesome large green button" href="{{ url_for("reset_bills") }}">Mark this as payed / processed</a>
+</div>
+
+<table>
+ <thead><tr><th>Name</th><th>Balance</th></tr></thead>
+ <tbody>
+{% for name, balance in balances.items() %}
+ <tr><td>{{ name }}</td><td>{{ balance }}</td></tr>
+{% endfor %}
+ </tbody>
+</table>
+{% endblock %}