templates/app/operation/odr/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Haribo Pro - Offres de remboursement{% endblock %}
  3. {% block body %}
  4. {% include "partials/banner-blue.html.twig" %}
  5. {% if odrs|length > 1 %}
  6. <div class="main-wrapper" id="odr">
  7.     <hgroup class="mb-0">
  8.         <h1 class="mb-2 mt-5">OFFRES DE REMBOURSEMENT</h1>
  9.         <h4 class="mb-5"><b>Sélectionnez</b> l'offre de remboursement dont vous souhaitez bénéficier.</h4>
  10.     </hgroup>
  11.     <img class="img-fluid wave-top d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave.png') }}"
  12.         alt="Haribo pro" />
  13.     <img class="img-fluid wave-top d-sm-none w-100 d-block" src="{{ asset('build/img/pink-wave-mobile.png') }}"
  14.         alt="Haribo pro" />
  15.     <div id="bloc-jeu" class="row bg-pink">
  16.         <div class="odr-list-items-wrapper">
  17.             {% for key, odr in odrs %}
  18.             {% if (key % 2) == 0 %}
  19.             <div class="container justify-content-center card-container card-grid">
  20.                 {% endif %}
  21.                 <div class="d-flex justify-content-center">
  22.                     <div class="card card-w100 odr-preview-wrapper shadow">
  23.                         {% if odr.currentStock > 0 or odr.participated == true %}
  24.                         {% else %}
  25.                         <div class="no-stock">
  26.                             <div class="no-stock-content">
  27.                                 <i class="fa-solid fa-triangle-exclamation"></i>
  28.                                 <p>Il n'y a plus de stock</p>
  29.                             </div>
  30.                         </div>
  31.                         {% endif %}
  32.                         {% if app.user %}
  33.                             {% if odr.participated == true %}
  34.                             <div class="no-stock">
  35.                                 <div class="no-stock-content">
  36.                                     <i class="fa-solid fa-clipboard-check"></i>
  37.                                     <p>Vous avez déja bénéficié de cette offre</p>
  38.                                 </div>
  39.                             </div>
  40.                             {% else %}
  41.                                 {% if odrManager.totalparticipation(odr.id) >= odr.maxParticipationPerMonth  %}
  42.                                     <div class="no-stock">
  43.                                         <div class="no-stock-content">
  44.                                             <i class="fa-solid fa-clipboard-check"></i>
  45.                                             <p>Il n'y a plus de stock</p>
  46.                                         </div>
  47.                                     </div>
  48.                                 {% endif %}
  49.                             {% endif%}
  50.                         {% endif %}
  51.                         {% if not app.user %}
  52.                             {% if odr.nbParticipations >= odr.maxParticipationPerMonth %}
  53.                             <div class="no-stock">
  54.                                 <div class="no-stock-content">
  55.                                     <i class="fa-solid fa-clipboard-check"></i>
  56.                                     <p>Il n'y a plus de stock</p>
  57.                                 </div>
  58.                             </div>
  59.                             {% endif%}
  60.                         {% endif%}
  61.                         <div class="card-part-1">
  62.                             {% for thumbnail in odr.thumbnailOdrs %}
  63.                             <img src="{{ thumbnail.filePath | imageFilePath('odr') }}" alt="thumbnail_odr-{{ odr.id }}">
  64.                             {% endfor %}
  65.                             <div class="preview-txt-detail-wrap mt-2">
  66.                                 {# <p class="dates-txt"><i class="far fa-calendar"></i> Du {{
  67.                                     odr.startDate|date('d/m/Y')
  68.                                     }} au {{ odr.endDate|date('d/m/Y') }}</p> #}
  69.                                 <h2>{{ odr.title }}</h2>
  70.                                 <p>{{ odr.subtitle | raw }}</p>
  71.                             </div>
  72.                         </div>
  73.                         <div class="card-part-2">
  74.                             <div class="container-price">
  75.                                 {% if (odr.percentage) > 0 %}
  76.                                 <p class="price">{{ odr.percentage }}<span>%</span></p>
  77.                                 {% else %}
  78.                                 <p class="price">{{ odr.amount }}<span>€</span></p>
  79.                                 {% endif %}
  80.                                 <p class="reduc">de réductions</p>
  81.                             </div>
  82.                             <a class="btn btn-primary"
  83.                                 href="{{ path('kiwi_operation_odr_show', { 'odrId': odr.id }) }}">J'en profite</a>
  84.                         </div>
  85.                     </div>
  86.                 </div>
  87.                 {% if ((key+1)%2) == 0 %}
  88.             </div>
  89.             {% endif %}
  90.             {% endfor %}
  91.         </div>
  92.     </div>
  93.     <img class="img-fluid wave-bottom d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave-bottom.png') }}"
  94.         alt="Haribo pro" />
  95.     <img class="img-fluid wave-bottom  d-sm-none w-100 d-block"
  96.         src="{{ asset('build/img/pink-wave-bottom-mobile.png') }}" alt="Haribo pro" />
  97. </div>
  98. {% else %}
  99. <div class="main-wrapper" id="odr">
  100.     <hgroup class="mb-0">
  101.         <h1 class="mb-2 mt-5">OFFRES DE REMBOURSEMENT</h1>
  102.         <h4 class="mb-5"><b>Sélectionnez</b> l'offre de remboursement dont vous souhaitez bénéficier.</h4>
  103.     </hgroup>
  104.     <img class="img-fluid wave-top d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave.png') }}"
  105.         alt="Haribo pro" />
  106.     <img class="img-fluid wave-top d-sm-none w-100 d-block" src="{{ asset('build/img/pink-wave-mobile.png') }}"
  107.         alt="Haribo pro" />
  108.     <div class="bg-pink">
  109.         <hgroup class="mb-0 no-offer-txt">
  110.             <h3 class="mb-3 no-offer-txt" >Il n'y a pas d'offres de remboursement en cours pour le moment...<h3/>
  111.             <h4 class="">Restez à l'écoute !</h4>
  112.         </hgroup>
  113.     </div>
  114.     <img class="img-fluid wave-bottom d-none w-100 d-md-block" src="{{ asset('build/img/pink-wave-bottom.png') }}"
  115.         alt="Haribo pro" />
  116.     <img class="img-fluid wave-bottom  d-sm-none w-100 d-block"
  117.         src="{{ asset('build/img/pink-wave-bottom-mobile.png') }}" alt="Haribo pro" />
  118. </div>
  119. {% endif %}
  120. {% endblock %}