Change class names for validation errors in html

Implements the class name changes detailed in:
https://github.com/alphagov/govuk_elements/pull/405
This commit is contained in:
Chris Hill-Scott
2017-04-10 11:16:22 +01:00
parent 87c81c994f
commit 8d5af47620
6 changed files with 20 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
disable=[],
option_hints={}
) %}
<div class="form-group {% if field.errors %} error{% endif %}">
<div class="form-group {% if field.errors %} form-group-error{% endif %}">
<fieldset>
<legend class="form-label">
{{ field.label.text|safe }}
@@ -45,7 +45,7 @@
hint=None,
wrapping_class='form-group'
) %}
<div class="{{ wrapping_class }} {% if field.errors %} error{% endif %}">
<div class="{{ wrapping_class }} {% if field.errors %} form-group-error{% endif %}">
<fieldset>
<legend class="form-label">
{{ field.label.text }}
@@ -81,7 +81,7 @@
hint=None,
branding_dict={}
) %}
<div class="form-group {% if field.errors %} error{% endif %}">
<div class="form-group {% if field.errors %} form-group-error{% endif %}">
<fieldset>
<legend class="form-label">
{{ field.label.text }}