Fix form input append class

master
DjVinnii 4 years ago
parent 1db0a870f3
commit 5ddea07c9a

@ -38,7 +38,7 @@
{% else %} {% else %}
{{ field.label if label else '' }}{{ form_field_errors(field) }} {{ field.label if label else '' }}{{ form_field_errors(field) }}
{% if prepend %}<div class="input-group-prepend">{% endif %} {% if prepend %}<div class="input-group-prepend">{% endif %}
{% if append %}<div class="input-group-text">{% endif %} {% if append %}<div class="input-group-append">{% endif %}
{{ prepend|safe }}{{ field(class_="form-control " + class_, **kwargs) }}{{ append|safe }} {{ prepend|safe }}{{ field(class_="form-control " + class_, **kwargs) }}{{ append|safe }}
{% if prepend or append %}</div>{% endif %} {% if prepend or append %}</div>{% endif %}
{% endif %} {% endif %}

Loading…
Cancel
Save