diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-16 23:38:27 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-16 23:38:27 +0200 |
| commit | f7a969240a984c6eb63662331ad7767283088efc (patch) | |
| tree | 35020be50ef11f8c8dd5899edcd2943ba43159f8 /budget/templates/list_bills.html | |
| parent | 9a3e4537cbd5c3aa8d154fe390749c1c33e5dc12 (diff) | |
| download | ihatemoney-mirror-f7a969240a984c6eb63662331ad7767283088efc.zip ihatemoney-mirror-f7a969240a984c6eb63662331ad7767283088efc.tar.gz ihatemoney-mirror-f7a969240a984c6eb63662331ad7767283088efc.tar.bz2 | |
Add a datepicker (with support of i18n). Fix #37
Diffstat (limited to 'budget/templates/list_bills.html')
| -rw-r--r-- | budget/templates/list_bills.html | 9 |
1 files changed, 9 insertions, 0 deletions
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 %} + <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 %} +{% 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 %} |
