{% set button = button ?: false %}{% set responsive_js = responsive_js ?: false %}{% set entity = entity ?: '' %}{% set with_form = with_form ?: false %}{% set with_button = with_button ?: 'o' %}{% if not button and with_form %}<div class="grid-container search-container"> <form action="{{link}}" class="searchBar grid-x align-center {{responsive_js ? "js-searchbar-responsive"}} {{annuairePage ? "searchBar_annuaire"}}"> {% endif %} {% for input in inputs %} <div class="searchBar-group"> {% if button %} <div class="searchBar-group-button btn btn_whiteBkg btn_blueBorder btn_cat">{{ input.name }} <img src="{{ asset('images/svg/icon_arrowDown_blue.svg') }}" /> </div> {% else %} <input type="text" name="{{ input.name }}" autocomplete="off" id="{{ bigSearch ? "bigsearchInput" }}" class="searchBar-group-input {{ input.options.arrow ? "searchBar-group-input_arrowIcon" : "" }} {{ input.options.pen ? "searchBar-group-input_penIcon" : "" }}" placeholder="{{ input.placeholder }}" entity="{{ entity }}" required="{{ entity == 'bigsearch' ? 'true' : false }}" /> {% if app.request.query.has('annee') %} <input type="hidden" name="annee" value="{{ app.request.query.get('annee') }}" /> {% endif %} {% endif %} {% if entity != 'bigsearch' %} <div class="searchBar-group-dropdown grid-y {{ not result_categories ?: 'stuff_home' }}"> {% if input.options.arrow %} <div class="searchBar-group-dropdown-section"> <p class="searchBar-group-dropdown-section-title" id="locate_me"> <a href="javascript:;" style="color:#525c66;"> <img src="/assets/images/svg/arrowIcon_dark.svg"> Autour de moi </a> </p> </div> {% endif %} {% if input.options.pen and result_categories %} <div class="searchBar-group-dropdown-section" id="default_entities"> {% for cat in result_categories %} <p class="searchBar-group-dropdown-section-queries-item" onclick="setStuff({{'"' ~ cat.name ~ '"'}}, {{cat.alias}})">{{cat.name}}</p> {% endfor %} <p><i>ou taper votre recherche ...</i></p> </div> {% endif %} <div class="searchBar-group-dropdown-section" id="list_{{ input.name }}"></div> </div> <input type="hidden" id="{{ input.name }}"> {% endif %} </div> {% endfor %} {% if not button and with_button == 'o' %} {% if entity == "centres affiliés" or entity == 'bigsearch' or entity == "videos" %} <button type="submit" class="btn btn-extra">Rechercher</button> {% else %} <button type="button" id="submit" class="btn">Rechercher</button> {% endif %} {% endif %} {% if not button and with_form %} </form> {% if pageType is defined and pageType == "center_lists" %} <div class="cell flex-container filter-wrapper"> <button type="button" class="btn filter-wrapper_button"> Filtrer </button> </div> {% endif %}</div>{% endif %}{% if not button and with_form %}{% if pageType is defined and pageType == "center_lists" %}<div class="grid-container filters-wrapper"> {% include "modules/select/select.twig" with { "inputs" : [ { "name": "Réseaux", "queries": dropdown.networks }, { "name": "Diplômes", "queries": dropdown.degrees } ] } %}</div>{% endif %}{% endif %}