diff --git a/Resources/views/Form/bootstrap.html.twig b/Resources/views/Form/bootstrap.html.twig index 92e72a6..308d3cd 100644 --- a/Resources/views/Form/bootstrap.html.twig +++ b/Resources/views/Form/bootstrap.html.twig @@ -110,9 +110,26 @@ {% block textarea_widget %} {% spaceless %} + {% set col_size = col_size|default(bootstrap_get_col_size()) %} + + {% if attr.simple_col is defined and attr.simple_col is not empty %} + {% set simple_col = attr.simple_col %} + {% endif %} + {% if attr.col_size is defined and attr.col_size is not empty %} + {% set col_size = attr.col_size %} + {% endif %} + + {% if simple_col is defined %} +
+ {% endif %} + {% set attr = attr|merge({ 'class': (attr.class|default('') ~ ' form-control')|trim }) %} + + {% if simple_col is defined %} +
+ {% endif %} {% endspaceless %} {% endblock textarea_widget %}