{% macro toolbar(form, collapsible, displayInitial) %} {% deprecated 'The macro "toolbar" is deprecated since 1.2 and will be removed with 2.0, use dropDownSearch() instead' %}
{% endmacro %} {% macro dropDownSearch(form) %} {% form_theme form 'form/search-form.html.twig' %} {{ form_start(form, { 'attr': {'class': 'form-horizontal header-search hidden-xs'}}) }} {% set searchTermClass = 'dropdown-toggle input-sm' %} {% if not form.searchTerm.vars.valid %} {% set searchTermClass = searchTermClass ~ ' search-has-error' %} {% endif %} {% if not form.vars.valid %} {% set searchTermClass = searchTermClass ~ ' has-error' %} {% endif %}