Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 52a77146 authored by escuriola's avatar escuriola
Browse files

OEL-1367: Remove wrapper and classes for the error part.

parent 9aa37941
No related branches found
No related tags found
2 merge requests!157OEL-1668: Update epic list pages.,!136OEL-1367: New Look & Feel for search form in search page and remove theming from block config form.
......@@ -8,23 +8,10 @@
* @see ./core/modules/system/templates/form-element.html.twig
*/
#}
{% set classes = [
'js-form-item',
'form-item',
'js-form-type-' ~ type|clean_class,
'form-item-' ~ name|clean_class,
'js-form-item-' ~ name|clean_class,
title_display not in ['after', 'before'] ? 'form-no-label',
disabled == 'disabled' ? 'form-disabled',
errors ? 'form-item--error',
] %}
{{ children }}
{% if errors %}
<div{{ attributes.addClass(classes) }}>
<div class="form-item--error-message invalid-feedback d-block">
{{ errors }}
</div>
<div class="form-item--error-message invalid-feedback d-block">
{{ errors }}
</div>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment