templates/simulateur/newSimulateur.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Simulateur de prix
  3. {% endblock %}
  4. {% block body %}
  5.     <div class="body_interface body_interface_client" id="bloc_simulateur">
  6.         <div class="body_interface_header">
  7.             <div class="grid-container">
  8.                 <div class="bloc_titre">
  9.                     <h1>
  10.                         Simulateur de prix
  11.                     </h1>
  12.                 </div>
  13.                 <div class="bloc_paragraph">
  14.                     <p>
  15.                         Entrez vos informations,<br>
  16.                         le simulateur se charge de calculer au plus juste
  17.                     </p>
  18.                 </div>
  19.             </div>
  20.         </div>
  21.         <div class="body_interface_div">
  22.             <div class="grid-container">
  23.                 <div class="grid-x grid-margin-x">
  24.                     <div class="cell large-8 medium-8 small-12">
  25.                         <div class="bloc_infos">
  26.                             <div class="bloc_infos_body" id="bloc_livraison">
  27.                                 <h2 class="accordeon infos_livraison" data-panel="livraison">
  28.                                     Informations sur la livraison
  29.                                 </h2>
  30.                                 <div
  31.                                     class="panel show mt-30" id="panel-livraison">
  32.                                     {# Select zone / pays #}
  33.                                     <select name="country" id="country">
  34.                                         <option value="" disabled="disabled" selected="selected">Pays de destination</option>
  35.                                         {% for zone in zones %}
  36.                                             <optgroup label="{{ zone.nom }}">
  37.                                                 {% for pays in zone.pays %}
  38.                                                     <option value="{{ pays.id }}">{{ pays.nom }}</option>
  39.                                                 {% endfor %}
  40.                                             </optgroup>
  41.                                         {% endfor %}
  42.                                     </select>
  43.                                     <div class="grid-x grid-margin-x add_valeur">
  44.                                         <div class="cell small-12">
  45.                                             <label for="description" class="ps-20">Valeur totale (en € TTC)</label>
  46.                                             <input type="number" id="valeur" name="valeur" step="0.01" placeholder="300.14">
  47.                                         </div>
  48.                                     </div>
  49.                                     <div class="recapBouteilles">
  50.                                         <div class="grid-x grid-margin-x">
  51.                                             <div class="cell large-4 small-6 ps-20">
  52.                                                 <i>Volume</i>
  53.                                             </div>
  54.                                             <div class="cell large-4 small-6 ps-20">
  55.                                                 <i>Nb de bouteilles</i>
  56.                                             </div>
  57.                                             <div class="cell auto"></div>
  58.                                         </div>
  59.                                     </div>
  60.                                     <div class="addBouteilles">
  61.                                         <div class="grid-x grid-margin-x">
  62.                                             <div class="cell large-4 small-12">
  63.                                                 <label for="volume" class="ps-20">Volume</label>
  64.                                                 <select name="volume" id="volume">
  65.                                                     <option value="0.75">0.75L</option>
  66.                                                     <option value="0.5">0.5L</option>
  67.                                                     <option value="1.5">1.5L</option>
  68.                                                     {# <option value="3">3L</option> #}
  69.                                                 </select>
  70.                                             </div>
  71.                                             <div class="cell large-4 small-12">
  72.                                                 <label for="quantity" class="ps-20">Nb de bouteilles</label>
  73.                                                 <input type="number" id="quantity" name="quantity" min="1" step="1" value="1">
  74.                                             </div>
  75.                                             <div class="cell auto">
  76.                                                 <label for="addProduct" class="ps-20">&nbsp;</label>
  77.                                                 <button id="addProduct" class="bouton_rouge">Ajouter</button>
  78.                                             </div>
  79.                                         </div>
  80.                                         <div class="notes">
  81.                                             Veuillez noter que le prix mentionné correspond à des bouteilles de 1,5 kg
  82.                                         </div>
  83.                                     </div>
  84.                                 </div>
  85.                             </div>
  86.                         </div>
  87.                         <div class="bloc_show_simulateur"></div>
  88.                     </div>
  89.                     <div class="cell large-4 medium-4 small-12">
  90.                         <div style="position: sticky;top: 50px;">
  91.                             <p id="simuler_new_prix" class="text-center" style="display:none;">
  92.                                 <a href="/simulateur" class="new_prix">Simuler un nouveau prix</a>
  93.                             </p>
  94.                             <div id="affichage_complet_simulateur"></div>
  95.                             <p id="consulter_offres" class="text-center" style="display:none;">
  96.                                 <a href="{{ path('app_offre') }}" target="_blank" class="new_prix" style="text-decoration:none;" id="lien_offre">
  97.                                     Consulter l'offre complète
  98.                                     <br>
  99.                                     pour visualiser les restrictions et informations.
  100.                                 </a>
  101.                             </p>
  102.                         </div>
  103.                     </div>
  104.                 </div>
  105.             </div>
  106.         </div>
  107.     </div>
  108.     <script src="{{ asset('js/simulateur.js') }}"></script>
  109. {% endblock %}