From cb13fbb782d3fda9f2ce20fcffddeb7cdf3a84a8 Mon Sep 17 00:00:00 2001 From: Xavier Mehrenberger Date: Mon, 12 Mar 2012 00:35:06 +0100 Subject: Split bills function and basic template. --- budget/templates/settle_bill.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 budget/templates/settle_bill.html (limited to 'budget/templates/settle_bill.html') diff --git a/budget/templates/settle_bill.html b/budget/templates/settle_bill.html new file mode 100644 index 0000000..c91b03d --- /dev/null +++ b/budget/templates/settle_bill.html @@ -0,0 +1,35 @@ +{% extends "layout.html" %} + +{% block head %} + + {% if g.lang != "en" %} + + {% endif %} +{% endblock %} +{% block js %} + $('#cancel-form').click(function(){location.href={{ url_for(".list_bills") }};}); + $.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'}); + $(".datepicker").datepicker($.datepicker.regional['{{ g.lang }}']); + +{% endblock %} +{% block navbar %} +
  • {{ _("Bills") }}
  • +
  • {{ _("Settle") }}
  • +{% endblock %} + + +{% block content %} + + + + {% for bill in bills %} + + + + + + {% endfor %} + +
    {{ _("Who pays?") }}{{ _("To whom?") }}{{ _("How much?") }}
    {{ bill.ower }}{{ bill.payer }}{{ "%0.2f"|format(bill.amount) }}
    + +{% endblock %} -- cgit v1.1