templates/default/notesEnseignes.html.twig line 1

Open in your IDE?
  1. {% extends 'base2.html.twig' %}
  2. {% block title %}Hello DefaultController!{% endblock %}
  3. {% block body %}
  4. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  5. <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js" defer></script>
  7. <style>
  8.     .txt-inscription,
  9.     label {
  10.        color: #adb9ca;
  11.     }
  12.  
  13.     button {
  14.        background-color: #adb9ca !important;
  15.        color: white !important;
  16.     }
  17.  
  18.     button:hover {
  19.        background-color: #0073CD !important;
  20.        color: white !important;
  21.     }
  22.  
  23.     .btn-logo {
  24.        width: 0.1px;
  25.        opacity: 0;
  26.     }
  27.  
  28.     #pro .style-choix-logo {
  29.        background-color: #adb9ca;
  30.        color: white;
  31.        padding: 0.5em;
  32.        border-radius: 5px;
  33.     }
  34.       #part .style-choix-logo {
  35.          background-color: #B0DB82 !important;
  36.          color: white !important;
  37.          padding: 0.5em;
  38.        border-radius: 5px;
  39.       }  
  40.       #part .theme-btn-pro{
  41.          background-color: #B0DB82 !important;
  42.          color: white !important;
  43.       }
  44.       #pro .theme-btn-pro{
  45.          background-color: #adb9ca;
  46.          color: white;
  47.       }
  48.  </style>
  49.  <section class="contact-area page-paddings" style="background-color: white">
  50.          <div class="container">
  51.             <div class="row">
  52.                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
  53.                   <div class="section-title text-center">
  54.                      <h1 data-watermark="Contact" class="{% if app.user.type == 'part' %}green{% else %}blue{% endif %}">Notes de l'enseigne {{noteEnseigne}}/5</h1>
  55.                     
  56.                      <p class="subtitle">Vous trouverez ci-dessous la liste de toutes les notes de votre enseigne .</p>
  57.                   </div>
  58.                </div>
  59.             </div>
  60.             <div class="row">
  61.                <div class="col-xl-8 col-lg-10 col-md-10 col-sm-12 col-12 offset-xl-2 offset-lg-1 offset-md-1">
  62.                   <div class="contact-box-main">
  63.                      <div class="row">
  64.                      {% for res in notes %}
  65.                         <div class="col-4">
  66.                         {{res.date|date('d-m-Y')}} - {{res.user.nom}}<br>
  67.                               {% if res.note == 0 %}
  68.                                                 <i class="far fa-star"></i>
  69.                                                 <i class="far fa-star"></i>
  70.                                                 <i class="far fa-star"></i>
  71.                                                 <i class="far fa-star"></i>
  72.                                                 <i class="far fa-star"></i> 
  73.                                              {% endif %}
  74.                                             
  75.                                                {% if res.note == 1 %}
  76.                                                 <i class="fas fa-star"></i>
  77.                                                 <i class="far fa-star"></i>
  78.                                                 <i class="far fa-star"></i>
  79.                                                 <i class="far fa-star"></i>
  80.                                                 <i class="far fa-star"></i> 
  81.                                              {% endif %}
  82.                                               
  83.                                                {% if res.note == 2 %}
  84.                                                 <i class="fas fa-star"></i>
  85.                                                 <i class="fas fa-star"></i>
  86.                                                 <i class="far fa-star"></i>
  87.                                                 <i class="far fa-star"></i>
  88.                                                 <i class="far fa-star"></i> 
  89.                                              {% endif %}
  90.                                              
  91.                                                {% if res.note == 3 %}
  92.                                                 <i class="fas fa-star"></i>
  93.                                                 <i class="fas fa-star"></i>
  94.                                                 <i class="fas fa-star"></i>
  95.                                                 <i class="far fa-star"></i>
  96.                                                 <i class="far fa-star"></i> 
  97.                                              {% endif %}
  98.                                               
  99.                                                {% if res.note == 4 %}
  100.                                                 <i class="fas fa-star"></i>
  101.                                                 <i class="fas fa-star"></i>
  102.                                                 <i class="fas fa-star"></i>
  103.                                                 <i class="fas fa-star"></i>
  104.                                                 <i class="far fa-star"></i> 
  105.                                              {% endif %}
  106.                                              
  107.                                                {% if res.note >= 5 %}
  108.                                                 <i class="fas fa-star"></i>
  109.                                                 <i class="fas fa-star"></i>
  110.                                                 <i class="fas fa-star"></i>
  111.                                                 <i class="fas fa-star"></i>
  112.                                                 <i class="fas fa-star"></i> 
  113.                                              {% endif %}
  114.                         </div>
  115.                         {% endfor %}
  116.                       
  117.                        
  118.                        
  119.                      </div>
  120.                   </div>
  121.                </div>
  122.             </div>
  123.          </div>
  124.       </section>
  125. {% endblock %}