From 471ef87d3e64cfedf29d667126436c315599872b Mon Sep 17 00:00:00 2001 From: "A.Avenel" Date: Wed, 2 Nov 2011 00:23:21 +0100 Subject: [PATCH] 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 +++++++++++++++ budget/templates/edit_bill.html | 15 --------------- budget/templates/layout.html | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 budget/templates/edit_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 %} diff --git a/budget/templates/edit_bill.html b/budget/templates/edit_bill.html deleted file mode 100644 index cb55d69..0000000 --- a/budget/templates/edit_bill.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "layout.html" %} - -{% block top_menu %} -{{ _("Back to the list") }} -{% endblock %} - -{% block content %} -

{{ _("Edit a bill") }}

- -
-
- {{ forms.add_bill(form) }} -
-
-{% endblock %} diff --git a/budget/templates/layout.html b/budget/templates/layout.html index f94c421..c8f8df8 100644 --- a/budget/templates/layout.html +++ b/budget/templates/layout.html @@ -49,7 +49,7 @@

{% if g.project %}