{% if searchForm %}
{% form_theme searchForm 'BackendBaseBundle:Backend/Base:_formTheme.html.twig' %}
    <div class="row">
        <div class="col-xs-10">
            {{ form_start(searchForm) }}
            {% for row in searchForm %}
                <div class="row" style="display:none;" data-search-row="{{ row.vars.id }}">
                    <div class="col-xs-11">{{ form_row(row) }}</div>
                    <div class="col-xs-1"><div class="pull-left"><a data-search-row-hide="{{ row.vars.id }}" href="" class="btn btn-danger"><i class="fa fa-times"></i></a></div></div>
                </div>
            {% endfor %}
            <div class="row" data-search-submit style="display:none;">
                <div class="col-xs-11">
                    <div class="form-group">
                        <div class="col-sm-2"></div>
                        <div class="col-sm-10">
                            <button class="btn-primary btn btn" type="submit"><i class="fa fa-search"></i> {{ 'form.button.search'|trans({}, 'forms') }}</button>&nbsp;
                            <button class="btn btn-white" name="reset" value="1" type="submit">{{ 'form.button.reset'|trans({}, 'forms') }}</button>
                        </div>
                    </div>
                </div>
            </div>
            {{ form_end(searchForm) }}
        </div>
        <div class="col-xs-2 text-right">
            <div class="btn-group btn-search">
                <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-search"></i> {{ 'form.button.search'|trans({}, 'forms') }} <span class="caret"></span></button>
                <ul class="dropdown-menu">
                    {% for row in searchForm %}
                        {%  if not (row.vars.name starts with '_') %}
                        <li>
                            <a href="">
                                <div class="i-checks">
                                    <label>
                                        <input type="checkbox" data-search-enabled="{{ row.vars.id }}" {% if not is_empty_value(row.vars.value) %}checked="checked"{% endif %}/>
                                        <i></i>{{row.vars.label|trans({}, row.vars.translation_domain)}}
                                    </label>
                                </div>
                            </a>
                        </li>
                        {% endif %}
                    {% endfor %}
                </ul>
            </div>
        </div>
    </div>
{% endif %}