templates/content/users/userComment_page.html.twig line 1

Open in your IDE?
  1. <header class="page-header page-header-compact page-header-light border-bottom bg-white mb-4 positionToHeader">
  2.     <div class="container-fluid px-4">
  3.         <div class="page-header-content">
  4.             <div class="row align-items-center justify-content-between pt-3">
  5.                 <div class="col-auto">
  6.                     <h1 class="text-center text-uppercase "><i class="bi bi-chat-square-text"></i> Mes Avis</h1>
  7.                     <p class="text-center">Retrouver vos avis.</p>
  8.                 </div>
  9.                 <div class="col-12 col-xl-auto mb-3">
  10.                     <a class="btn btn-sm btn-primary " href="{{path('app_home')}}">
  11.                         <i class="bi bi-house-fill"></i> &nbsp;
  12.                         Accueil
  13.                     </a>
  14.                 </div>
  15.             </div>
  16.         </div>
  17.     </div>
  18. </header>
  19. <div class="container-xl px-4 ">
  20.     <div class="card mb-4 ">
  21.         <div class="card-header">Mes Avis</div>
  22.         <div class="card-body">
  23.             <table id="datatablesSimple">
  24.                 <thead>
  25.                     <tr>
  26.                         <th>Date</th>
  27.                         <th>Commentaire</th>
  28.                         <th>Note</th>
  29.                         <th>Reponse</th>
  30.                     </tr>
  31.                 </thead>
  32.                 <tfoot>
  33.                     <tr>
  34.                         <th>Date</th>
  35.                         <th>Commentaire</th>
  36.                         <th>Note</th>
  37.                         <th>Reponse</th>
  38.                     </tr>
  39.                 </tfoot>
  40.                 <tbody>
  41.                     {% for avis in clientAvis %}
  42.                     <tr>
  43.                         <td>{{avis.datePost|date|format_datetime(locale='fr')}}</td>
  44.                         <td>{{avis.commentaire}}</td>
  45.                         <td>{% if avis.note == 0 %}
  46.                             <p class="text-center  small text-primary">
  47.                                 <i class="bi bi-star"></i>
  48.                                 <i class="bi bi-star"></i>
  49.                                 <i class="bi bi-star"></i>
  50.                                 <i class="bi bi-star"></i>
  51.                                 <i class="bi bi-star"></i>
  52.                             </p>
  53.                             {% elseif avis.note == 0.5 %}
  54.                             <p class="text-center  small text-primary">
  55.                                 <i class="bi bi-star-half" style="color: #d78316;"></i>
  56.                                 <i class="bi bi-star"></i>
  57.                                 <i class="bi bi-star"></i>
  58.                                 <i class="bi bi-star"></i>
  59.                                 <i class="bi bi-star"></i>
  60.                             </p>
  61.                             {% elseif avis.note == 1 %}
  62.                             <p class="text-center  small text-primary">
  63.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  64.                                 <i class="bi bi-star"></i>
  65.                                 <i class="bi bi-star"></i>
  66.                                 <i class="bi bi-star"></i>
  67.                                 <i class="bi bi-star"></i>
  68.                             </p>
  69.                             {% elseif avis.note == 1.5 %}
  70.                             <p class="text-center  small text-primary">
  71.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  72.                                 <i class="bi bi-star-half" style="color: #d78316;"></i>
  73.                                 <i class="bi bi-star"></i>
  74.                                 <i class="bi bi-star"></i>
  75.                                 <i class="bi bi-star"></i>
  76.                             </p>
  77.                             {% elseif avis.note == 2 %}
  78.                             <p class="text-center  small text-primary">
  79.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  80.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  81.                                 <i class="bi bi-star"></i>
  82.                                 <i class="bi bi-star"></i>
  83.                                 <i class="bi bi-star"></i>
  84.                             </p>
  85.                             {% elseif avis.note == 2.5 %}
  86.                             <p class="text-center  small text-primary">
  87.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  88.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  89.                                 <i class="bi bi-star-half" style="color: #d78316;"></i>
  90.                                 <i class="bi bi-star"></i>
  91.                                 <i class="bi bi-star"></i>
  92.                             </p>
  93.                             {% elseif avis.note == 3 %}
  94.                             <p class="text-center  small text-primary">
  95.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  96.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  97.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  98.                                 <i class="bi bi-star"></i>
  99.                                 <i class="bi bi-star"></i>
  100.                             </p>
  101.                             {% elseif avis.note == 3.5 %}
  102.                             <p class="text-center  small text-primary">
  103.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  104.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  105.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  106.                                 <i class="bi bi-star-half" style="color: #d78316;"></i>
  107.                                 <i class="bi bi-star"></i>
  108.                             </p>
  109.                             {% elseif avis.note == 4 %}
  110.                             <p class="text-center  small text-primary">
  111.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  112.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  113.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  114.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  115.                                 <i class="bi bi-star"></i>
  116.                             </p>
  117.                             {% elseif avis.note == 4.5 %}
  118.                             <p class="text-center  small text-primary">
  119.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  120.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  121.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  122.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  123.                                 <i class="bi bi-star-half" style="color: #d78316;"></i>
  124.                             </p>
  125.                             {% elseif avis.note == 5 %}
  126.                             <p class="text-center  small text-primary">
  127.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  128.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  129.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  130.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  131.                                 <i class="bi bi-star-fill" style="color: #d78316;"></i>
  132.                             </p>
  133.                             {% endif %}
  134.                         </td>
  135.                         {% if avis.reponse %}
  136.                         <td>{{avis.reponse}}Reponse</td>
  137.                         {%else%}
  138.                         <td></td>
  139.                         {%endif%}
  140.                     </tr>
  141.                     {% endfor %}
  142.                 </tbody>
  143.             </table>
  144.         </div>
  145.     </div>
  146. </div>