Skip to content
Snippets Groups Projects
Commit 62c63bd3 authored by Martin Postma's avatar Martin Postma Committed by Alberto Siles
Browse files

Issue #3134136 by lolandese: License "GPL-2.0+" is a deprecated SPDX license identifier

parent 1ed73087
No related branches found
Tags 8.x-4.28
No related merge requests found
diff --git a/templates/form/form-element.html.twig b/templates/form/form-element.html.twig
index 9f40966..29edb1f 100644
--- a/templates/form/form-element.html.twig
+++ b/templates/form/form-element.html.twig
@@ -133,8 +133,13 @@
{% if label_display in ['before', 'invisible'] %}
{{ label }}
{% endif %}
+ {% if (prefix is not empty) or (suffix is not empty) %}
+ <div class="input-group">
+ {% endif %}
{% if prefix is not empty %}
- <span class="field-prefix">{{ prefix }}</span>
+ <div class="input-group-prepend">
+ <span class="field-prefix input-group-text">{{ prefix }}</span>
+ </div>
{% endif %}
{% if description_display == 'before' and description.content %}
<div{{ description.attributes }}>
@@ -143,7 +148,12 @@
{% endif %}
{{ children }}
{% if suffix is not empty %}
- <span class="field-suffix">{{ suffix }}</span>
+ <div class="input-group-append">
+ <span class="field-suffix input-group-text">{{ suffix }}</span>
+ </div>
+ {% endif %}
+ {% if (prefix is not empty) or (suffix is not empty) %}
+ </div>
{% endif %}
{% if label_display == 'after' %}
{{ label }}
......@@ -2,7 +2,7 @@
"name": "drupal/bootstrap_barrio",
"description": "Bootstrap 4 base theme.",
"type": "drupal-theme",
"license": "GPL-2.0",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/bootstrap_barrio",
"require": {
"twbs/bootstrap": "^4.4.1"
......
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