diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-03-18 19:44:40 +0000 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-03-18 19:44:40 +0000 |
| commit | 54de7abf23f61df916fe65f590d0d45ec8e2d174 (patch) | |
| tree | 3b17ebb6dfa38dead23c650531de5ae6bdb27a8b /budget/templates/list_bills.html | |
| parent | 03ce000e9a7edc6989bc3d40243f769746ea3d22 (diff) | |
| download | ihatemoney-mirror-54de7abf23f61df916fe65f590d0d45ec8e2d174.zip ihatemoney-mirror-54de7abf23f61df916fe65f590d0d45ec8e2d174.tar.gz ihatemoney-mirror-54de7abf23f61df916fe65f590d0d45ec8e2d174.tar.bz2 | |
add a delete feature
Diffstat (limited to 'budget/templates/list_bills.html')
| -rw-r--r-- | budget/templates/list_bills.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index fba328e..09caa48 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -2,7 +2,7 @@ {% 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> + <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> <tbody> {% for bill in bills %} <tr class="{{ loop.cycle("odd", "even") }}"> @@ -11,6 +11,7 @@ <td>{{ bill.what }}</td> <td>{% for ower in bill.owers %}{{ ower.name }} {% endfor %}</td> <td>{{ bill.amount }} ({{ bill.pay_each() }} each)</td> + <td><a href="{{ url_for("delete_bill", bill_id=bill.id) }}">delete</a></td> </tr> {% endfor %} </tbody> |
