aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/list_bills.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-07-31 23:55:18 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-07-31 23:55:18 +0200
commit769bcbf3f10f59a1bce952c336adeb1804a5cc77 (patch)
tree46e7c4266b3a93d4ffa67d77d03e24cf2c5f998a /budget/templates/list_bills.html
parent548101d8bbd5adff4887cfad8fc70d1a4cf82370 (diff)
downloadihatemoney-mirror-769bcbf3f10f59a1bce952c336adeb1804a5cc77.zip
ihatemoney-mirror-769bcbf3f10f59a1bce952c336adeb1804a5cc77.tar.gz
ihatemoney-mirror-769bcbf3f10f59a1bce952c336adeb1804a5cc77.tar.bz2
Makes the computation working.
Diffstat (limited to 'budget/templates/list_bills.html')
-rw-r--r--budget/templates/list_bills.html18
1 files changed, 12 insertions, 6 deletions
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 %}
-<div id="leftmenu" class="span-6">
+<div id="leftmenu" class="span-4">
<ul>
- {% for member in project.members %}
- <li>{{ member.name }}</li>
+ {% set balance = project.get_balance() %}
+ {% for member in project.active_members %}
+ <li> {{ member.name }} {{ balance[member] }} <a href="{{ url_for("remove_member", project_id=project.id, member_id=member.id) }}">x</a></li>
{% endfor %}
</ul>
- {% set form=member_form %}
- {% include "member_form.html" %}
+ <form action="{{ url_for("add_member", project_id=project.id) }}" method="post">
+ {{ forms.add_member(member_form) }}
+ </form>
</div>
-<div id="content" class="span-18 last">
+<div id="content" class="uniForm span-20 last">
+ <form id="add_bill" action="{{ url_for('add_bill', project_id=project.id) }}" method="post" style="width: 400px; display: none">
+ {{ forms.add_bill(bill_form) }}
+ </form>
+
{% 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><th>Actions</th></tr></thead>