diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a741a6c..4d6ed621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v4.1.2 +## 10/07/2020 + +1. [](#bugfix) + * Added some missing class attributes + # v4.1.1 ## 09/01/2020 diff --git a/blueprints.yaml b/blueprints.yaml index 1d829ca6..33652c3b 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,7 +1,7 @@ name: Form slug: form type: plugin -version: 4.1.1 +version: 4.1.2 testing: false description: Enables the forms handling icon: check-square diff --git a/templates/forms/fields/checkbox/checkbox.html.twig b/templates/forms/fields/checkbox/checkbox.html.twig index 79bf8551..0b78064e 100644 --- a/templates/forms/fields/checkbox/checkbox.html.twig +++ b/templates/forms/fields/checkbox/checkbox.html.twig @@ -16,7 +16,7 @@ {# input attribute structures #} {% block input_attributes %} id="{{ id|e }}" - {% if field.classes is defined %}class="{{ field.classes }}" {% endif %} + class="{{ form_field_checkbox_classes }} {{ field.classes }}" {% if field.style is defined %}style="{{ field.style|e }}" {% endif %} {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %} {% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %} diff --git a/templates/forms/fields/checkboxes/checkboxes.html.twig b/templates/forms/fields/checkboxes/checkboxes.html.twig index 73052faa..ba9a6506 100644 --- a/templates/forms/fields/checkboxes/checkboxes.html.twig +++ b/templates/forms/fields/checkboxes/checkboxes.html.twig @@ -26,10 +26,9 @@ id="{{ id|e }}" value="{{ val|e }}" name="{{ (scope ~ field.name)|fieldName ~ '[' ~ name ~ ']' }}" + class="{{ form_field_checkbox_classes }} {{ field.classes }}" {% if checked %}checked="checked"{% endif %} - {% if field.classes is defined %}class="{{ field.classes }}" {% endif %} {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %} - >