From 471ef87d3e64cfedf29d667126436c315599872b Mon Sep 17 00:00:00 2001 From: "A.Avenel" Date: Wed, 2 Nov 2011 00:23:21 +0100 Subject: Bug fix in order to show the calendar widget when you edit a bill. Also fix another bug related to cancel button. --- budget/templates/add_bill.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'budget/templates/add_bill.html') diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html index 6349730..b784bfd 100644 --- a/budget/templates/add_bill.html +++ b/budget/templates/add_bill.html @@ -1,5 +1,20 @@ {% 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 top_menu %} {{ _("Back to the list") }} {% endblock %} -- cgit v1.1