{% form_theme form _self %} {% use 'bootstrap_4_horizontal_layout.html.twig' %} {% block form_label -%} {% set compound = false %} {{ parent() }} {% endblock form_label -%} {% block form_label_class -%} col-sm-4 {%- endblock form_label_class %} {% block form_group_class -%} col-sm-8 {%- endblock form_group_class %} {% block custom_tel_widget -%} {% if widget is constant('Misd\\PhoneNumberBundle\\Form\\Type\\PhoneNumberType::WIDGET_COUNTRY_CHOICE') %} {% set attr = attr|merge({class: (attr.class|default('') ~ ' row')|trim}) %}
{{- form_widget(form.country) -}}
{{- form_widget(form.number) -}}
{% else -%} {{- block('form_widget_simple') -}} {%- endif %} {%- endblock custom_tel_widget %}