diff --git a/horizon/forms/base.py b/horizon/forms/base.py index 2653f00377..605568a2ce 100644 --- a/horizon/forms/base.py +++ b/horizon/forms/base.py @@ -36,6 +36,8 @@ class SelfHandlingForm(SelfHandlingMixin, forms.Form): A base :class:`Form ` class which includes processing logic in its subclasses. """ + required_css_class = 'required' + def api_error(self, message): """ Adds an error to the form's error dictionary after validation diff --git a/horizon/templates/horizon/common/_form_fields.html b/horizon/templates/horizon/common/_form_fields.html index 21a9abdfdd..35676142a7 100644 --- a/horizon/templates/horizon/common/_form_fields.html +++ b/horizon/templates/horizon/common/_form_fields.html @@ -7,7 +7,7 @@ {% endif %} {% for field in form.visible_fields %} -
+
{{ field.label_tag }} {% if field.errors %} {% for error in field.errors %} diff --git a/horizon/templates/horizon/common/_workflow.html b/horizon/templates/horizon/common/_workflow.html index 4730af1bac..d2ef8b32e7 100644 --- a/horizon/templates/horizon/common/_workflow.html +++ b/horizon/templates/horizon/common/_workflow.html @@ -13,7 +13,7 @@ {% block modal-body %}