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/forms.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/forms.html')
| -rw-r--r-- | budget/templates/forms.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html index 3a3d5ba..8c0cda3 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -1,4 +1,4 @@ -{% macro input(field, multiple=False) -%} +{% macro input(field, multiple=False, class=None) -%} <div class="clearfix"> {% if field.type != "SubmitField" %} @@ -6,9 +6,9 @@ {% endif %} <div class="input"> {% if multiple == True %} - {{ field(multiple=True) }} + {{ field(multiple=True, class=class) }} {% else %} - {{ field }} + {{ field(class=class) | safe }} {% endif %} {% if field.description %} <span class="help-inline">{{ field.description }}</span> @@ -75,7 +75,7 @@ <legend>{% if edit %}{{ _("Edit this bill") }} {% else %}{{ _("Add a bill") }} {% endif %}</legend> {% include "display_errors.html" %} {{ form.hidden_tag() }} - {{ input(form.date) }} + {{ input(form.date, class="datepicker") }} {{ input(form.what) }} {{ input(form.payer) }} {{ input(form.amount) }} |
