{% extends "form_div_layout.html.twig" %} {%- block form_widget_simple -%} {% spaceless %} {% if include_errors is defined %}
{{ form_errors(form) }} {% endif %} {{ parent() }} {% if include_errors is defined %}
{% endif %} {% endspaceless %} {%- endblock form_widget_simple -%} {% block form_row %} {% spaceless %}
{{ form_label(form) }} {{ form_errors(form) }} {{ form_widget(form) }}
{% endspaceless %} {% endblock form_row %} {%- block widget_attributes_base -%} id="{{ id }}" name="{{ full_name }}" {%- if disabled %} disabled="disabled"{% endif -%} {%- if required %} required="required"{% endif -%} {%- for attrname, attrvalue in attr -%} {{- " " -}} {%- if attrname in ['placeholder', 'title'] -%} {{- attrname }}="{{ translation_domain is same as(false) ? attrvalue : attrvalue|trans({}, translation_domain) }}" {%- elseif attrvalue is same as(true) -%} {{- attrname }}="{{ attrname }}" {%- elseif attrvalue is not same as(false) -%} {{- attrname }}="{{ attrvalue }}" {%- elseif attrname == 'class' %} class="{{- attrvalue -}} form-control" {%- else -%} {{- attrname -}}="{{- attrvalue -}}" {%- endif -%} {%- endfor -%} {%- endblock widget_attributes_base -%} {%- block widget_attributes -%} {{ block('widget_attributes_base') }} class="form-control" {%- endblock widget_attributes -%} {% block choice_widget_expanded -%} {% for child in form %}
{{- form_widget(child) -}} {{- form_label(child) -}}
{% endfor %} {%- endblock choice_widget_expanded %} {%- block radio_widget -%} {%- endblock radio_widget -%} {%- block checkbox_widget -%} {%- endblock checkbox_widget -%} {% block form_errors %} {% spaceless %} {% if errors|length > 0 %}
{{ parent() }}
{% endif %} {% endspaceless %} {% endblock form_errors %} {% block autocomplete_entity_widget %} {#{ form_row(form) }#}
{{ form_label(form) }} {{ form_errors(form) }} {% if not form.vars.collection %}{{ form_widget(form) }}{% endif %}
{% endblock %} {% block autocomplete_add_entity_widget %}
{{ form_widget(form) }}
{% endblock %}