From be32a2550ec3b40d393620c301bbaa5bb59d1bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Sureau?= Date: Thu, 5 Apr 2012 15:40:09 +0200 Subject: Update to Boostrap v2. Remove unused libs (QTip, JQueryUI) and add bootstrap-datepicker which is much lighter. --- budget/templates/forms.html | 43 ++++++++++++++++++++----------------------- 1 file changed, 20 insertions(+), 23 deletions(-) (limited to 'budget/templates/forms.html') diff --git a/budget/templates/forms.html b/budget/templates/forms.html index 10b6e0c..8d15cb8 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -1,30 +1,29 @@ {% macro input(field, multiple=False, class=None) -%} -
- - {% if field.type != "SubmitField" %} - {{ field.label }} +
+ {% if field.type != "SubmitField" %} + {{ field.label(class="control-label") }} + {% endif %} +
+ {% if multiple == True %} + {{ field(multiple=True, class=class) }} + {% else %} + {{ field(class=class) | safe }} + {% endif %} + {% if field.description %} +

{{ field.description }}

{% endif %} -
- {% if multiple == True %} - {{ field(multiple=True, class=class) }} - {% else %} - {{ field(class=class) | safe }} - {% endif %} - {% if field.description %} - {{ field.description }} - {% endif %}
-
+
{% endmacro %} {% macro submit(field, cancel=False, home=False) -%}
- + {% if home %} {{ _("Can't remember the password?") }} {% endif %} {% if cancel %} - + {% endif %}
{% endmacro %} @@ -66,7 +65,7 @@ {{ input(form.password) }} {{ input(form.contact_email) }}
- + {{ _("delete") }}
@@ -85,24 +84,22 @@ {{ input(form.payed_for) }}
- {{ form.submit(class="btn primary") }} + {{ form.submit(class="btn btn-primary") }} {% if not edit %} {{ form.submit2(class="btn") }}{% endif %}
{% endmacro %} {% macro add_member(form) %} - {{ form.hidden_tag() }} - {{ form.name(class="menu-input") }} - - +{{ form.hidden_tag() }} +{{ form.name(placeholder=_("Type user name here")) }} {% endmacro %} {% macro invites(form) %} {{ form.hidden_tag() }} {{ input(form.emails) }}
- + {{ _("No, thanks") }}
{% endmacro %} -- cgit v1.1