{# precedingText string #} {# type string #} {# form \Symfony\Component\Form\FormView #} {# addRouteName string #} {# addBtnLabel string #} {# advancedSearchRouteName string #} {# sections \App\SectionsBundle\Twig\SectionsExtension #} {% form_theme form with "@Core/frontend/form/bootstrap_3_layout.html.twig" %} {{- precedingText|trans ~ ':' -}} {{- form_start(form) -}} {{- form_errors(form) -}} {{- form_row(form.phrase) -}} {% if form.category is defined %} {{- form_row(form.category) -}} {% endif %} {% if form.voivodeship is defined %} {{- form_row(form.voivodeship) -}} {% endif %} {% if form.type is defined %} {{- form_row(form.type) -}} {% endif %}
{{- form_row(form.submit, { icon: 'search' }) -}} {% if advancedSearchRouteName|default(null) is not null %} {{- 'common.advanced_search'|trans -}} {% endif %}
{{- form_end(form) -}} {% if addRouteName is not null %}
{{ addBtnLabel|trans }}
{% endif %}