From de708ce3efec2ab70b6b77781957766ae47f9068 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 10 Mar 2011 17:32:53 +0000 Subject: reshape the folder structure. Add conf files --- budget/templates/list_bills.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 budget/templates/list_bills.html (limited to 'budget/templates/list_bills.html') 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 %} + + + +{% for bill in bills %} + + + + + + + +{% endfor %} + +
When ?Who paid?for what ?OwersHow much ?
{{ bill.date }}{{ bill.payer }}{{ bill.what }}{% for ower in bill.owers %}{{ ower.name }} {% endfor %}{{ bill.amount }} ({{ bill.pay_each() }} each)
+ +Compute bills +

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

+ +{% else %} +

Nothing to list yet. You probably want to add a bill ?

+{% endif %} +{% endblock %} -- cgit v1.1