diff --git a/tailbone/forms/simpleform.py b/tailbone/forms/simpleform.py index c8e00653..afe1f289 100644 --- a/tailbone/forms/simpleform.py +++ b/tailbone/forms/simpleform.py @@ -72,7 +72,7 @@ class FormRenderer(renderers.FormRenderer): label = HTML.tag('label', for_=name, c=label or prettify(name)) inner = HTML.tag('div', class_='field', c=field) - outer_class = 'field-wrapper' + outer_class = 'field-wrapper {}'.format(name) if errors: outer_class += ' error' outer = HTML.tag('div', class_=outer_class, c=(errors or '') + label + inner)