From 769bcbf3f10f59a1bce952c336adeb1804a5cc77 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 31 Jul 2011 23:55:18 +0200 Subject: Makes the computation working. --- budget/templates/compute_bills.html | 11 ++++++++--- budget/templates/list_bills.html | 18 ++++++++++++------ 2 files changed, 20 insertions(+), 9 deletions(-) (limited to 'budget/templates') diff --git a/budget/templates/compute_bills.html b/budget/templates/compute_bills.html index 8f286cf..4c6fd56 100644 --- a/budget/templates/compute_bills.html +++ b/budget/templates/compute_bills.html @@ -1,4 +1,9 @@ {% extends "layout.html" %} + +{% block top_menu %} +Back to the list +{% endblock %} + {% block content %}

Computations

@@ -12,14 +17,14 @@
- Mark this as payed / processed + Mark this as payed / processed
-{% for name, balance in balances.items() %} - +{% for person, balance in balances.items() %} + {% endfor %}
NameBalance
{{ name }}{{ balance }}
{{ person.name }}{{ balance }}
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index a26dccc..48308fe 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -7,16 +7,22 @@ {% endblock %} {% block content %} -
+
    - {% for member in project.members %} -
  • {{ member.name }}
  • + {% set balance = project.get_balance() %} + {% for member in project.active_members %} +
  • {{ member.name }} {{ balance[member] }} x
  • {% endfor %}
- {% set form=member_form %} - {% include "member_form.html" %} +
+ {{ forms.add_member(member_form) }} +
-
+
+ + {% if bills.count() > 0 %} -- cgit v1.1
When ?Who paid?for what ?OwersHow much ?Actions