From f7a969240a984c6eb63662331ad7767283088efc Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 16 Oct 2011 23:38:27 +0200 Subject: Add a datepicker (with support of i18n). Fix #37 --- budget/templates/list_bills.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'budget/templates/list_bills.html') diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 895bb37..a6ab5fc 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -1,6 +1,12 @@ {% extends "layout.html" %} {% block title %}- {{ g.project.name }}{% endblock %} +{% block head %} + + {% if g.lang != "en" %} + + {% endif %} +{% endblock %} {% block js %} // display the form when clicking on the "add bill" button var show_form = function(){ @@ -40,6 +46,9 @@ }, function(){ $(this).find('.remove').hide(); }); + + $.datepicker.setDefaults({'dateFormat': 'yy-mm-dd'}); + $(".datepicker").datepicker($.datepicker.regional['{{ g.lang }}']); {% endblock %} {% block sidebar %} -- cgit v1.1