templates/frontend/header/header.html.twig line 1

  1. <style>
  2.     .mon-active {
  3.         color: #e37f05 !important;
  4.     }
  5. </style>
  6. <nav class="navbar navbar-expand-lg fixed-top bg-white" style="z-index: 10;">
  7.     <div class="container">
  8.         <a class="navbar-brand" href="{{ path('app_home') }}">
  9.             <img style="height:50px" src="{{ asset('assets/img/logo-cmp.png') }}" alt="new logo">
  10.         </a>
  11.         <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
  12.             <span class="navbar-toggler-icon"></span>
  13.         </button>
  14.         <div class="collapse navbar-collapse" id="navbarScroll">
  15.             <ul class="navbar-nav mr-auto" style="font-size: 15px !important; color: black !important;">
  16.                 <li class="nav-item dropdown">
  17.                     <a class="nav-link text-dark" href="{{ path('app_home') }}" role="button" aria-expanded="false">
  18.                         ACCUEIL
  19.                     </a>
  20.                 </li>
  21.                 {% if marketplace_enabled %}
  22.                 <li class="nav-item ">
  23.                     <a class="nav-link {% if route_name in ['app_market_search', 'app_market_detail_products'] %}mon-active{% endif %} text-dark mr-1" href="{{ path('app_market_search') }}">MARKETPLACE</a>
  24.                 </li>
  25.                 {% endif %}
  26.             </ul>
  27.             <ul class="navbar-nav ms-auto" style="font-size: 15px !important; color: black !important;">
  28.                 {% if is_auth() == false %}
  29.                     <li class="nav-item">
  30.                         <a class="btn btn-outline-success mb-2 mb-md-2" style="margin-left: 10px !important; border-radius: 30px !important;" href="{{ path('app_login') }}">Connexion</a>
  31.                     </li>
  32.                     <li class="nav-item">
  33.                         <a class="btn btn-success" style="margin-left: 10px !important; border-radius: 30px !important;" href="{{ path('app_register') }}">Création de Compte</a>
  34.                     </li>
  35.                 {% else %}
  36.                     <li class="nav-item">
  37.                         <a class="btn btn-outline-danger mb-2 mb-md-2" style="margin-left: 10px !important; border-radius: 30px !important;" href="{{ path('app_dashboard') }}"><i class="las la-user"></i> Mon espace</a>
  38.                     </li>
  39.                     <li class="nav-item">
  40.                         <a class="btn btn-outline-primary mb-2 mb-md-2" style="margin-left: 10px !important; border-radius: 30px !important;" href="{{ path('app_cart_show') }}"><i class="fas fa-shopping-cart"></i> Panier ({{ getCartQtyProduct() }})</a>
  41.                     </li>
  42.                 {% endif %}
  43.             </ul>
  44.         </div>
  45.     </div>
  46. </nav>
  47. {% set client = get_current_client() %}
  48. {% if (client is not null and is_state_completed(client.proofState) == false) %}
  49.     <div class="row">
  50.         {% if (is_state_missing(client.proofState)) %}
  51.             <div class="col-xs-12 pb-2">
  52.                 <div class="alert alert-danger">
  53.                     <div class="alert-body d-flex justify-content-between">
  54.                         Le justificatif est manquant. Les transactions du client sont pour le moment bloquées.
  55.                         <a href="{{ path('app_subscription_alerts') }}" class="btn btn-danger btn-sm">
  56.                             <i class="ri-article-line"></i>&nbsp;Charger un justificatif
  57.                         </a>
  58.                     </div>
  59.                 </div>
  60.             </div>
  61.         {% endif %}
  62.         {% if (is_state_uploaded(client.proofState)) %}
  63.             <div class="col-xs-12 pb-2">
  64.                 <div class="alert alert-danger">
  65.                     <div class="alert-body d-flex justify-content-between">
  66.                         Le justificatif doit être vérifié. Les transactions du client sont pour le moment bloquées.
  67.                         <a href="{{ path('app_subscription_alerts') }}" class="btn btn-danger btn-sm">
  68.                             <i class="ri-article-line"></i>&nbsp;Vérifier le justificatif
  69.                         </a>
  70.                     </div>
  71.                 </div>
  72.             </div>
  73.         {% endif %}
  74.     </div>
  75. {% endif %}
  76. {% if (client is not null and is_state_completed(client.signatureState) == false) %}
  77.     <div class="row">
  78.         {% if (is_state_missing(client.signatureState)) %}
  79.             <div class="col-xs-12 pb-2">
  80.                 <div class="alert alert-danger">
  81.                     <div class="alert-body d-flex justify-content-between">
  82.                         Le client n'a pas encore signé son bon de souscription. Les transactions du client sont pour le moment bloquées.
  83.                         <a href="{{ path('app_subscription_sign') }}" class="btn btn-danger btn-sm">
  84.                             <i class="las la-signature"></i>&nbsp;Signer
  85.                         </a>
  86.                     </div>
  87.                 </div>
  88.             </div>
  89.         {% endif %}
  90.     </div>
  91. {% endif %}