templates/front/inc/header.html.twig line 79

Open in your IDE?
  1. <div class="header" style="position: fixed;width:100%;top:0;z-index:89">
  2.     <div class="col-lg-12 col-md-12">
  3.         <div class="classHeader row">
  4.             <div
  5.                 class="row col-lg-8">
  6.                 <!-- navigations -->
  7.                 <div class="header-logo">
  8.                     <a href="{{ path('front_home') }}"><img src="{{ asset('images/logo noir.png') }}" alt="Logo Providders" style="width:140px;margin-top:-13px;margin-bottom:-10px"></a>
  9.                 </div>
  10.                 <div id="navigation" class="" style="display: flex ; flex-direction: column">
  11.                     <ul class="align-items-center ml-4">
  12.                         <li>
  13.                             <a href="{{ path('front_home') }}" title="Accueil Providders" {% if app.request.attributes.get('_route') == 'front_home' %} style="color:#EB5B20" {% endif %}>Accueil</a>
  14.                         </li>
  15.                         <li id="idPrestataires">
  16.                             <a href="{{ path('front_company_list') }}" title="Prestataires" {% if app.request.attributes.get('_route') == 'front_company_list' %} style="color:#EB5B20" {% endif %}>Prestataires</a>
  17.                             <div id="dropDownPrestataires" class="dropDownMenu">
  18.                                 <div class="container-dropDownMenu">
  19.                                     {% for company in filter_service.getCompany()|slice(0, 5) %}
  20.                                         {% set proucts = filter_service.getPhotounProductsCompany(company)%}
  21.                                         {% if proucts is not empty %}
  22.                                             {% set prods = proucts %}
  23.                                             <div class="oneMenu">
  24.                                                 {% for product in prods %}
  25.                                                     <a href="{{ path('front_company_single', {'companySlug': company.companySlug, 'id': company.id}) }}">
  26.                                                         {% if product.photos is not empty %}
  27.                                                             <img class="imgMenu" src="{{ asset(constant('App\\Services\\File::IMAGE_PRODUCT_DIR')) ~ product.photos.first.url }}" alt="{{ product.name }}">
  28.                                                         {% else %}
  29.                                                             <img class="imgMenu" src="{{ asset('upload/produits/defaultProduct2.jpg')}}" alt="">
  30.                                                         {% endif %}
  31.                                                         <p>{{product.company.companyName}}</p>
  32.                                                     </a>
  33.                                                 {% endfor %}
  34.                                             </div>
  35.                                         {% endif %}
  36.                                     {% endfor %}
  37.                                 </div>
  38.                             </div>
  39.                         </li>
  40.                         <li id="idServices">
  41.                             <a href="{{ path('front_product_products') }}" title="Services" {% if app.request.attributes.get('_route') == 'front_product_products' %} style="color:#EB5B20" {% endif %}>Services</a>
  42.                             <div id="dropDownServices" class="dropDownMenu">
  43.                                 <div class="container-dropDownMenu">
  44.                                     {% for category in filter_service.getSubcategories()|slice(0, 5) %}
  45.                                         <div class="oneMenu">
  46.                                             <a href="{{ path('front_product_category_events', {'subCategorySlug': category.subCategorySlug}) }}">
  47.                                                 <img class="imgMenu" src="{{ asset(constant('App\\Services\\File::IMAGE_CATEGORY_DIR') ~ category.image) }}" alt="">
  48.                                                 <p>{{ category.name }}</p>
  49.                                             </a>
  50.                                         </div>
  51.                                     {% endfor %}
  52.                                 </div>
  53.                             </div>
  54.                         </li>
  55.                         <li>
  56.                             <a href="{{ path('front_article_list') }}" title="Articles" {% if app.request.attributes.get('_route') == 'front_article_list' %} style="color:#EB5B20" {% endif %}>Articles</a>
  57.                         </li>
  58.                         <li>
  59.                             <a href="{{ path('front_blog_list') }}" title="blog" {% if app.request.attributes.get('_route') == 'front_blog_list' %} style="color:#EB5B20" {% endif %}>Blog</a>
  60.                         </li>
  61.                         {# <li><a href="{{ path('client_depeau_annonce') }}" title="annonce" {% if app.request.attributes.get('_route') == 'client_depeau_annonce' %}style="color:#EB5B20"{% endif %}>Annonces</a></li> #}
  62.                         <li>
  63.                             <a href="{{ path('front_contact') }}" title="contact" {% if app.request.attributes.get('_route') == 'front_contact' %} style="color:#EB5B20" {% endif %}>Contact</a>
  64.                         </li>
  65.                         <li>
  66.                             <a href="#" title="search" id="link_search" style="color:black">
  67.                                 <i class="fas fa-search"></i>
  68.                             </a>
  69.                         </li>
  70.                     </ul>
  71.                 </div>
  72.                 <!-- /.navigations #4CB8A3 #EB5B20 -->
  73.             </div>
  74.             <div
  75.                 class="col-lg-4 d-xl-block d-lg-block p-0">
  76.                 <!-- header-btn -->
  77.                 <div class="header-btn">
  78.                     <div class="row">
  79.                         {% if app.user and is_granted("ROLE_ADMIN") %}
  80.                             <a href="{{ path('admin_dashboard') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  81.                                 <i class="fas fa-user mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  82.                                 Administration</a>
  83.                         {% elseif app.user and is_granted("ROLE_ADMIN_LIMITED") %}
  84.                             <a href="{{ path('admin_user_list') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  85.                                 <i class="fas fa-user mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  86.                                 Administration</a>
  87.                         {% elseif app.user and is_granted("ROLE_ENTERPRISE") %}
  88.                             <a href="{{ path('front_company_space_dashboard') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  89.                                 <i class="fas fa-user mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  90.                                 Compte Prestataire</a>
  91.                         {% elseif app.user and is_granted("ROLE_USER") %}
  92.                             <a href="{{ path('front_client_space_dashboard') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  93.                                 <i class="fas fa-user mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  94.                                 {{ app.user.firstName }}
  95.                                 {{ app.user.lastName }}</a>
  96.                         {% else %}
  97.                             <a href="{{ path('app_login') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  98.                                 <i class="fas fa-user mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  99.                                 Accès Client</a>
  100.                         {% endif %}
  101.                         {% if app.user %}
  102.                             <a href="{{ path('deconnexion') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  103.                                 <i class="fas fa-power-off mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  104.                                 Déconnexion</a>
  105.                         {% else %}
  106.                             <a href="{{ path('app_login_enterprise') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center">
  107.                                 <i class="fas fa-briefcase mr-1" style="font-size:1.3em;color:#4CB8A3 "></i>
  108.                                 Accès prestataire</a>
  109.                         {% endif %}
  110.                         <a href="{{ path('front_my_basket') }}" class="btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center" style="color:#4CB8A3 ">
  111.                             <i class="fas fa-shopping-cart mr-1" style="font-size:1.6em;color:#4CB8A3 ;padding-top:2px"></i>
  112.                             <span id="nb_basket" style="font-size:1.6em;color:#252429">{{ app.session.get('products')|length + app.session.get('packs')|length }}</span>
  113.                         </a>
  114.                     </div>
  115.                 </div>
  116.                 <!-- /.header-btn -->
  117.             </div>
  118.         </div>
  119.         <form class="form-row pt-2" method="post" action="{{ path('front_product_search') }}" id="form_header" style="border-top:1px solid darkgrey">
  120.             <div
  121.                 class="col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12" id="div_search_type">
  122.                 <!-- select -->
  123.                 <select class="wide form-control" name="category">
  124.                     <option value="">Service</option>
  125.                     {% for subCategory in filter_service.getSubcategories %}
  126.                         <option value="{{ subCategory.id }}">{{ subCategory.name }}</option>
  127.                     {% endfor %}
  128.                 </select>
  129.             </div>
  130.             <div
  131.                 class="col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12">
  132.                 <!-- select -->
  133.                 <select class=" form-control select2" style="width: 100%;padding:5px 14px;height:50px!important" name="department_filter">
  134.                     <option value="">Lieu</option>
  135.                     {% for department in filter_service.getDepartments %}
  136.                         <option value="{{ department.id }}">{{ department.name }}</option>
  137.                     {% endfor %}
  138.                 </select>
  139.             </div>
  140.             <div
  141.                 class="col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12">
  142.                 <!-- select -->
  143.                 <div class="form-group">
  144.                     <input id="user_weddingDatebar" name="weddingdate" autocomplete="off" type="text" placeholder="Date souhaitée" class="form-control input-md">
  145.                     <div class="venue-form-calendar">
  146.                         <i class="far fa-calendar-alt"></i>
  147.                     </div>
  148.                 </div>
  149.             </div>
  150.             <!-- button -->
  151.             <div class="col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12">
  152.                 <button class="btn btn-default btn-block" type="submit">Rechercher</button>
  153.             </div>
  154.         </form>
  155.     </div>
  156. </div>