aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/add_bill.html
diff options
context:
space:
mode:
authorA.Avenel <avenel.alexandre@gmail.com>2011-11-02 00:23:21 +0100
committerA.Avenel <avenel.alexandre@gmail.com>2011-11-02 00:23:21 +0100
commit471ef87d3e64cfedf29d667126436c315599872b (patch)
tree7a8105806db105905d85d09cc52ca05a11bad29d /budget/templates/add_bill.html
parent0d44b97c4a6719e2c7b8f2cddd149db6c1a7bc8d (diff)
downloadihatemoney-mirror-471ef87d3e64cfedf29d667126436c315599872b.zip
ihatemoney-mirror-471ef87d3e64cfedf29d667126436c315599872b.tar.gz
ihatemoney-mirror-471ef87d3e64cfedf29d667126436c315599872b.tar.bz2
Bug fix in order to show the calendar widget when you edit a bill. Also fix another bug related to cancel button.
Diffstat (limited to 'budget/templates/add_bill.html')
-rw-r--r--budget/templates/add_bill.html15
1 files changed, 15 insertions, 0 deletions
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 %}
+ <script src="{{ url_for("static", filename="jquery/js/jquery-ui.js") }}"></script>
+ {% if g.lang != "en" %}
+ <script src="{{ url_for("static", filename="jquery/i18n/jquery.ui.datepicker-%s.js" % g.lang ) }}"></script>
+ {% endif %}
+ <script src="{{ url_for("static", filename="ihatemoney/custom.js") }}"></script>
+{% 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 %}
<a href="{{ url_for(".list_bills") }}">{{ _("Back to the list") }}</a>
{% endblock %}