aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/list_bills.html
diff options
context:
space:
mode:
authorfredericsureau <frederic.sureau@gmail.com>2012-01-27 16:37:45 -0800
committerfredericsureau <frederic.sureau@gmail.com>2012-01-27 16:37:45 -0800
commitadfa5f9263460fcdff23166a0bba34e277ea1fab (patch)
tree085460e087e43c896515e96e4093851efd280187 /budget/templates/list_bills.html
parent848e4a34ce6aea14baf7ade0463a7495d99b9294 (diff)
parenta59465c9a5fa18be31f5698e07800387d0a8c4ff (diff)
downloadihatemoney-mirror-adfa5f9263460fcdff23166a0bba34e277ea1fab.zip
ihatemoney-mirror-adfa5f9263460fcdff23166a0bba34e277ea1fab.tar.gz
ihatemoney-mirror-adfa5f9263460fcdff23166a0bba34e277ea1fab.tar.bz2
Merge pull request #74 from fredericsureau/master
Fix bug #21
Diffstat (limited to 'budget/templates/list_bills.html')
-rw-r--r--budget/templates/list_bills.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html
index b698da6..7d3ff11 100644
--- a/budget/templates/list_bills.html
+++ b/budget/templates/list_bills.html
@@ -27,7 +27,7 @@
// ask for confirmation before removing an user
$('.action').each(function(){
$(this).hide();
- var link = $(this).find('a');
+ var link = $(this).find('button');
link.click(function(){
if ($(this).hasClass("confirm")){
return true;
@@ -83,9 +83,13 @@
{% if balance[member.id] > 0 %}+{% endif %}{{ balance[member.id] }}
</td>
{% if member.activated %}
- <td class="action delete"> <a href="{{ url_for(".remove_member", member_id=member.id) }}">{{ _("delete") }}</a></td>
+ <td class="action delete">
+ <form action="{{ url_for(".remove_member", member_id=member.id) }}" method="POST">
+ <button type="submit">{{ _("delete") }}</button></form></td>
{% else %}
- <td class="action reactivate"> <a href="{{ url_for(".reactivate", member_id=member.id) }}">{{ _("reactivate") }}</a></td>
+ <td class="action reactivate">
+ <form action="{{ url_for(".reactivate", member_id=member.id) }}" method="POST">
+ <button type="submit">{{ _("reactivate") }}</button></form></td>
{% endif %}
</tr>
{% endfor %}