diff --git a/budget/forms.py b/budget/forms.py index 77a5ec2..adf3de7 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -19,14 +19,14 @@ def select_multi_checkbox(field, ul_class='', **kwargs): choice_id = u'toggleField' js_function = u'toggle();' options = dict(kwargs, id=choice_id, onclick=js_function) - html.append(u'
'% (_("Select all"), _("Select none"))) + html.append(u''% (_("Select all"), _("Select none"))) for value, label, checked in field.iter_choices(): choice_id = u'%s-%s' % (field_id, value) options = dict(kwargs, name=field.name, value=value, id=choice_id) if checked: options['checked'] = 'checked' - html.append(u'' + html.append(u'' % (choice_id, ' ' % html_params(**options), label)) html.append(u'') return u''.join(html) diff --git a/budget/templates/display_errors.html b/budget/templates/display_errors.html index bc65a3a..9e19605 100644 --- a/budget/templates/display_errors.html +++ b/budget/templates/display_errors.html @@ -1,5 +1,5 @@ {% for field_name, field_errors in form.errors.items() if field_errors %} {% for error in field_errors %} -{{ form[field_name].label.text }}: {{ error }}
+{{ form[field_name].label.text }}: {{ error }}
{% endfor %} {% endfor %} diff --git a/budget/templates/forms.html b/budget/templates/forms.html index 07e5b3d..cf599a9 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -1,9 +1,13 @@ -{% macro input(field, multiple=False, class=None) -%} -