templates/widget/recherche/index.html.twig line 1

Open in your IDE?
  1. {% if app.user is not null %}
  2.     <div id="search_bar_container">
  3.         <div class="{% if site_slug == 'horizonce' %}container-fluid{% else %}container{% endif %}">
  4.             <div class="row">
  5.                 <div class="{% if site_slug == 'horizonce' %}col-lg-2 offset-lg-10{% else %}col-lg-6 mb-3 mb-lg-0{% endif %}">
  6.                     <div class="search_bar search_bar_left">
  7.                         <form action="{{ path('produit.liste') }}" method="GET" class="formulaire formulaire-recherche">
  8.                             {% if site_slug != 'horizonce' %}
  9.                                 <span class="nav-facade-active" id="nav-search-in">
  10.                                     <span id="nav-search-in-content" class="nav-search-in-content" style="">{{ 'recherche_gauche'|trans }}</span>
  11.                                     <span class="nav-down-arrow nav-sprite"></span>
  12.                                     <select title="{{ 'recherche_gauche'|trans }}" class="searchSelect" id="searchDropdownBox">
  13.                                         <option value="{{ path('produit.liste') }}" title="{{ 'recherche_gauche'|trans }}">
  14.                                             {{ 'recherche_gauche'|trans }}
  15.                                         </option>
  16.                                         {% for categorieProduit in categorieProduits %}
  17.                                             <option value="{{ path('produit.categorie.liste', {'slug' : categorieProduit.slug}) }}" title="{{ categorieProduit.intitule }}">
  18.                                                 {{ categorieProduit.intitule }}
  19.                                             </option>
  20.                                         {% endfor %}
  21.                                     </select>
  22.                                 </span>
  23.                             {% endif %}
  24.                             <div class="nav-searchfield-outer">
  25.                                 <input type="text" name="search[motcles]" placeholder="{{ 'recherche_gauche_texte'|trans }}" id="twotabsearchtextbox">
  26.                             </div>
  27.                             <div class="nav-submit-button">
  28.                                 <input type="submit" title="{{ 'rechercher'|trans }}" class="nav-submit-input" value="" />
  29.                             </div>
  30.                         </form>
  31.                     </div>
  32.                 </div>
  33.                 {% if site_slug != 'horizonce' %}
  34.                     <div class="col-lg-6">
  35.                         <div class="search_bar search_bar_right">
  36.                             <form action="{{ path('page.carte.reseau.axce') }}" method="GET" class="formulaire formulaire-recherche">
  37.                                 <span class="nav-facade-active" id="nav-search-in">
  38.                                     <span id="nav-search-in-content" class="nav-search-in-content" style="">{{ 'recherche_droite'|trans }}</span>
  39.                                     <span class="nav-down-arrow nav-sprite"></span>
  40.                                     <select title="{{ 'recherche_droite'|trans }}" class="searchSelect" id="searchDropdownBox">
  41.                                         <option value="{{ path('page.carte.reseau.axce') }}" title="{{ 'recherche_droite'|trans }}">
  42.                                             {{ 'recherche_droite'|trans }}
  43.                                         </option>
  44.                                         {% for categorieOffre in categorieOffres %}
  45.                                             <option value="{{ categorieOffre.id }}" title="{{ categorieOffre.intitule }}">
  46.                                                 {{ categorieOffre.intitule }}
  47.                                             </option>
  48.                                         {% endfor %}
  49.                                     </select>
  50.                                 </span>
  51.                                 <div class="nav-searchfield-outer">
  52.                                     <input type="text" name="search[motcles]" placeholder="{{ 'recherche_droite_texte'|trans }}" id="twotabsearchtextbox">
  53.                                     <input type="hidden" name="search[categories]" id="twotabsearchhiddenbox">
  54.                                 </div>
  55.                                 <div class="nav-submit-button">
  56.                                     <input type="submit" title="{{ 'rechercher'|trans }}" class="nav-submit-input" value="" />
  57.                                 </div>
  58.                             </form>
  59.                         </div>
  60.                     </div>
  61.                 {% endif %}
  62.             </div>
  63.         </div>
  64.     </div>
  65. {% endif %}