templates/modalAddress/modal_address.html.twig line 1

  1. <div class="modal fade" id="addressModal" aria-hidden="true" aria-labelledby="addressModal" tabindex="-1">
  2.     <div class="modal-dialog modal-xl modal-dialog-centered">
  3.         <div class="modal-content">
  4.             <div class="modal-header">
  5.                 <h5 class="modal-title" id="addressModal">Adresses de livraison</h5>
  6.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  7.             </div>
  8.             <div class="modal-body row mx-4">
  9.                 {% if informations != null and informations[0].deliveryAddress != null %}
  10.                     {% for index, address in informations[0].deliveryAddress %}
  11.                         <div class="first-address-delivery text-center col-md-4">
  12.                             <div class="card mt-5 mb-5">
  13.                                 <p class="card-header">
  14.                                     Adresse {{ index + 1 }}</p>
  15.                                 <div class="home-address">
  16.                                     <i class="fa-solid fa-house"></i>
  17.                                     <div class="informations-address">
  18.                                         <span class="id-address" hidden>{{ address.id }}</span>
  19.                                         <span class="companyname-address">{{ address.companyName }}</span>
  20.                                         <span class="firstname-address">{{ address.firstName }}</span>
  21.                                         <span class="name-address">{{ address.name }}</span><br/>
  22.                                         <span class="street-address">{{ address.address }}</span>,
  23.                                         <span class="cp-address">{{ address.postal }}</span>
  24.                                         <span class="town-address">{{ address.town }}</span><br/>
  25.                                         <span class="country-address">{{ address.country }}</span><br/>
  26.                                         <span class="tel-address">{{ address.phoneNumber }}</span>
  27.                                         <!-- HOURLY DAY -->
  28.                                         <span class="hourlyMonday d-none">{% if address.hourlyMonday != null %}{{ address.hourlyMonday }}{% endif %}</span>
  29.                                         <span class="hourlyMorningMonday d-none">{% if address.hourlyMorningMonday != null %}{{ address.hourlyMorningMonday|date("H:i", "UTC") }}{% endif %}</span>
  30.                                         <span class="hourlyMorningMondayEnd d-none">{% if address.hourlyMorningMondayEnd != null %}{{ address.hourlyMorningMondayEnd|date("H:i", "UTC") }}{% endif %}</span>
  31.                                         <span class="hourlyTuesday d-none">{% if address.hourlyTuesday != null %}{{ address.hourlyTuesday ? 'true' : 'false' }}{% endif %}</span>
  32.                                         <span class="hourlyMorningTuesday d-none">{% if address.hourlyMorningTuesday != null %}{{ address.hourlyMorningTuesday|date("H:i", "UTC") }}{% endif %}</span>
  33.                                         <span class="hourlyMorningTuesdayEnd d-none">{% if address.hourlyMorningTuesdayEnd != null %}{{ address.hourlyMorningTuesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  34.                                         <span class="hourlyWednesday d-none">{% if address.hourlyWednesday != null %}{{ address.hourlyWednesday ? 'true' : 'false' }}{% endif %}</span>
  35.                                         <span class="hourlyMorningWednesday d-none">{% if address.hourlyMorningWednesday != null %}{{ address.hourlyMorningWednesday|date("H:i", "UTC") }}{% endif %}</span>
  36.                                         <span class="hourlyMorningWednesdayEnd d-none">{% if address.hourlyMorningWednesdayEnd != null %}{{ address.hourlyMorningWednesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  37.                                         <span class="hourlyThursday d-none">{% if address.hourlyThursday != null %}{{ address.hourlyThursday ? 'true' : 'false' }}{% endif %}</span>
  38.                                         <span class="hourlyMorningThursday d-none">{% if address.hourlyMorningThursday != null %}{{ address.hourlyMorningThursday|date("H:i", "UTC") }}{% endif %}</span>
  39.                                         <span class="hourlyMorningThursdayEnd d-none">{% if address.hourlyMorningThursdayEnd != null %}{{ address.hourlyMorningThursdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  40.                                         <span class="hourlyFriday d-none">{% if address.hourlyFriday != null %}{{ address.hourlyFriday ? 'true' : 'false' }}{% endif %}</span>
  41.                                         <span class="hourlyMorningFriday d-none">{% if address.hourlyMorningFriday != null %}{{ address.hourlyMorningFriday|date("H:i", "UTC") }}{% endif %}</span>
  42.                                         <span class="hourlyMorningFridayEnd d-none">{% if address.hourlyMorningFridayEnd != null %}{{ address.hourlyMorningFridayEnd|date("H:i", "UTC") }}{% endif %}</span>
  43.                                         <span class="hourlySaturday d-none">{% if address.hourlySaturday != null %}{{ address.hourlySaturday ? 'true' : 'false' }}{% endif %}</span>
  44.                                         <span class="hourlyMorningSaturday d-none">{% if address.hourlyMorningSaturday != null %}{{ address.hourlyMorningSaturday|date("H:i", "UTC") }}{% endif %}</span>
  45.                                         <span class="hourlyMorningSaturdayEnd d-none">{% if address.hourlyMorningSaturdayEnd != null %}{{ address.hourlyMorningSaturdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  46.                                         <span class="hourlySunday d-none">{% if address.hourlySunday != null %}{{ address.hourlySunday ? 'true' : 'false' }}{% endif %}</span>
  47.                                         <span class="hourlyMorningSunday d-none">{% if address.hourlyMorningSunday != null %}{{ address.hourlyMorningSunday|date("H:i", "UTC") }}{% endif %}</span>
  48.                                         <span class="hourlyMorningSundayEnd d-none">{% if address.hourlyMorningSundayEnd != null %}{{ address.hourlyMorningSundayEnd|date("H:i", "UTC") }}{% endif %}</span>
  49.                                         <!-- END HOURLY DAY -->
  50.                                         {# PREFERENCES #}
  51.                                         <span class="monday d-none">{% if address.monday != null %}{{ address.monday ? 'true' : 'false' }}{% endif %}</span>
  52.                                         <span class="morningMonday d-none">{% if address.morningMonday != null %}{{ address.morningMonday|date("H:i", "UTC") }}{% endif %}</span>
  53.                                         <span class="morningMondayEnd d-none">{% if address.morningMondayEnd != null %}{{ address.morningMondayEnd|date("H:i", "UTC") }}{% endif %}</span>
  54.                                         <span class="afternoonMonday d-none">{% if address.afternoonMonday != null %}{{ address.afternoonMonday|date("H:i", "UTC") }}{% endif %}</span>
  55.                                         <span class="afternoonMondayEnd d-none">{% if address.afternoonMondayEnd != null %}{{ address.afternoonMondayEnd|date("H:i", "UTC") }}{% endif %}</span>
  56.                                         <span class="tuesday d-none">{% if address.tuesday != null %}{{ address.tuesday ? 'true' : 'false' }}{% endif %}</span>
  57.                                         <span class="morningTuesday d-none">{% if address.morningTuesday != null %}{{ address.morningTuesday|date("H:i", "UTC") }}{% endif %}</span>
  58.                                         <span class="morningTuesdayEnd d-none">{% if address.morningTuesdayEnd != null %}{{ address.morningTuesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  59.                                         <span class="afternoonTuesday d-none">{% if address.afternoonTuesday != null %}{{ address.afternoonTuesday|date("H:i", "UTC") }}{% endif %}</span>
  60.                                         <span class="afternoonTuesdayEnd d-none">{% if address.afternoonTuesdayEnd != null %}{{ address.afternoonTuesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  61.                                         <span class="wednesday d-none">{% if address.morningWednesday != null %}{{ address.wednesday ? 'true' : 'false' }}{% endif %}</span>
  62.                                         <span class="morningWednesday d-none">{% if address.morningWednesday != null %}{{ address.morningWednesday|date("H:i", "UTC") }}{% endif %}</span>
  63.                                         <span class="morningWednesdayEnd d-none">{% if address.morningWednesdayEnd != null %}{{ address.morningWednesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  64.                                         <span class="afternoonWednesday d-none">{% if address.afternoonWednesday != null %}{{ address.afternoonWednesday|date("H:i", "UTC") }}{% endif %}</span>
  65.                                         <span class="afternoonWednesdayEnd d-none">{% if address.afternoonWednesdayEnd != null %}{{ address.afternoonWednesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  66.                                         <span class="thursday d-none">{% if address.thursday != null %}{{ address.thursday ? 'true' : 'false' }}{% endif %}</span>
  67.                                         <span class="morningThursday d-none">{% if address.morningThursday != null %}{{ address.morningThursday|date("H:i", "UTC") }}{% endif %}</span>
  68.                                         <span class="morningThursdayEnd d-none">{% if address.morningThursdayEnd != null %}{{ address.morningThursdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  69.                                         <span class="afternoonThursday d-none">{% if address.afternoonThursday != null %}{{ address.afternoonThursday|date("H:i", "UTC") }}{% endif %}</span>
  70.                                         <span class="afternoonThursdayEnd d-none">{% if address.afternoonThursdayEnd != null %}{{ address.afternoonThursdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  71.                                         <span class="friday d-none">{% if address.friday != null %}{{ address.friday ? 'true' : 'false' }}{% endif %}</span>
  72.                                         <span class="morningFriday d-none">{% if address.morningFriday  != null %}{{ address.morningFriday|date("H:i", "UTC") }}{% endif %}</span>
  73.                                         <span class="morningFridayEnd d-none">{% if address.morningFridayEnd != null %}{{ address.morningFridayEnd|date("H:i", "UTC") }}{% endif %}</span>
  74.                                         <span class="afternoonFriday d-none">{% if address.afternoonFriday != null %}{{ address.afternoonFriday|date("H:i", "UTC") }}{% endif %}</span>
  75.                                         <span class="afternoonFridayEnd d-none">{% if address.afternoonFridayEnd != null %}{{ address.afternoonFridayEnd|date("H:i", "UTC") }}{% endif %}</span>
  76.                                         <span class="saturday d-none">{% if address.saturday != null %}{{ address.saturday ? 'true' : 'false' }}{% endif %}</span>
  77.                                         <span class="morningSaturday d-none">{% if address.morningSaturday != null %}{{ address.morningSaturday|date("H:i", "UTC") }}{% endif %}</span>
  78.                                         <span class="morningSaturdayEnd d-none">{% if address.morningSaturdayEnd != null %}{{ address.morningSaturdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  79.                                         <span class="afternoonSaturday d-none">{% if address.afternoonSaturday != null %}{{ address.afternoonSaturday|date("H:i", "UTC") }}{% endif %}</span>
  80.                                         <span class="afternoonSaturdayEnd d-none">{% if address.afternoonSaturdayEnd != null %}{{ address.afternoonSaturdayEnd|date("H:i", "UTC") }}{% endif %}</span>
  81.                                         <span class="sunday d-none">{% if address.sunday != null %}{{ address.sunday ? 'true' : 'false' }}{% endif %}</span>
  82.                                         <span class="morningSunday d-none">{% if address.morningSunday != null %}{{ address.morningSunday|date("H:i", "UTC") }}{% endif %}</span>
  83.                                         <span class="morningSundayEnd d-none">{% if address.morningSundayEnd != null %}{{ address.morningSundayEnd|date("H:i", "UTC") }}{% endif %}</span>
  84.                                         <span class="afternoonSunday d-none">{% if address.afternoonSunday != null %}{{ address.afternoonSunday|date("H:i", "UTC") }}{% endif %}</span>
  85.                                         <span class="afternoonSundayEnd d-none">{% if address.afternoonSundayEnd != null %}{{ address.afternoonSundayEnd|date("H:i", "UTC") }}{% endif %}</span>
  86.                                     </div>
  87.                                 </div>
  88.                             </div>
  89.                         </div>
  90.                     {% endfor %}
  91.                 {% endif %}
  92.             </div>
  93.             <div class="modal-footer d-flex justify-content-between">
  94. {#                <a href="{{ path('profile') }}">#}
  95.                     <button type="button" class="modal-btn-update btn btn-dark hover-transition btnAddAddress" data-bs-target="#addAddressModal_id" data-bs-toggle="modal"
  96.                             data-bs-dismiss="modal">Ajouter une adresse</button>
  97. {#                </a>#}
  98.             </div>
  99.         </div>
  100.     </div>
  101. </div>
  102. <div class="modal fade" id="addAddressModal_id" aria-hidden="true" aria-labelledby="addAddressModalLabel" tabindex="-1">
  103.     <div class="modal-dialog modal-lg modal-dialog-centered">
  104.         <div class="modal-content">
  105.             <div class="modal-header">
  106.                 <h5 class="modal-title fw-bold" id="addAddressModal">Nouvelle adresse</h5>
  107.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  108.             </div>
  109.             <div class="modal-body mx-3">
  110.                 <div class="section-newAddressDelivery">
  111.                     <form class="row" method="post" action="{{ path('profileCreateDeliveryAddress') }}">
  112.                         <div class="mb-3 col-md-6">
  113.                             <label for="companyName" class="form-label">Nom d'entreprise</label>
  114.                             <input type="text" class="form-control" id="companyName" name="companyName" placeholder="Nom d'entreprise" required>
  115.                         </div>
  116.                         <div class="mb-3 col-md-6">
  117.                             <label for="name" class="form-label">Nom de famille</label>
  118.                             <input type="text" class="form-control" id="name" name="name" placeholder="Nom de famille...">
  119.                         </div>
  120.                         <div class="col-md-6">
  121.                             <label for="firstName" class="form-label">Prénom</label>
  122.                             <input type="text" class="form-control" id="firstName" name="firstName" placeholder="Prénom...">
  123.                         </div>
  124.                         <div class="col-md-6 mb-3">
  125.                             <label for="address" class="form-label">Adresse (rue, numéro)</label>
  126.                             <input type="text" class="form-control" id="address" name="address" placeholder="Adresse..." required>
  127.                         </div>
  128.                         <div class="col-md-6">
  129.                             <label for="postal" class="form-label">Code postal</label>
  130.                             <input type="text" class="form-control" id="postal" name="postal" placeholder="Code postal..." required>
  131.                         </div>
  132.                         <div class="col-md-6 mb-3">
  133.                             <label for="town" class="form-label">Localité</label>
  134.                             <input type="text" class="form-control" id="town" name="town" placeholder="Localité..." required>
  135.                         </div>
  136.                         <div class="col-md-6 mb-3">
  137.                             <label for="country" class="form-label">Pays</label>
  138.                             <select class="form-select" id="country" name="country" required>
  139.                                 <option value="">Sélectionner un pays...</option>
  140.                                 <option value="Belgique">Belgique</option>
  141.                                 <option value="France">France</option>
  142.                                 <option value="Luxembourg">Luxembourg</option>
  143.                             </select>
  144.                         </div>
  145.                         <div class="col-md-6">
  146.                             <label for="phoneNumbers" class="form-label">Numéro de téléphone</label>
  147.                             <input type="text" class="form-control" name="phoneNumbers" id="phoneNumbers"
  148.                                    placeholder="Numéro de téléphone..." required>
  149.                         </div>
  150.                         <div class="date-addressDelivery mt-3 d-flex justify-content-center modalPrefDelivery">
  151.                             <h5 class="title-dataAddressDelivery mb-4 mt-4 fw-bold">Préférences de livraison
  152.                                 <span class="businessHours fw-light"> (Horaires d'ouverture)</span>
  153.                             </h5>
  154.                         </div>
  155.                         <!-- BLOCK DES PREFERENCES DE LIVRAISON -->
  156.                         {% block delivery_preference %}
  157.                             {% include "account/membersInformations/modal/delivery_preference.html.twig" %}
  158.                         {% endblock %}
  159.                         <!-- END BLOCK DES PREFERENCES DE LIVRAISON -->
  160.                     </form>
  161.                 </div>
  162.             </div>
  163.         </div>
  164.     </div>
  165. </div>
  166. <div class="modal fade" id="updateAddressModal" aria-hidden="true" aria-labelledby="updateAddressModal" tabindex="-1">
  167.     <div class="modal-dialog modal-lg modal-dialog-centered">
  168.         <div class="modal-content">
  169.             <div class="modal-header">
  170.                 <h5 class="modal-title" id="updateAddressModal2">Modifier l'adresse</h5>
  171.                 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  172.             </div>
  173.             <div class="modal-body mx-3">
  174.                 <div class="section-newAddressDelivery">
  175.                     <form class="row" method="post" action="{{ path('profileUpdateDeliveryAddress') }}">
  176.                         <div class="mb-3 col-md-6">
  177.                             <label for="companyName" class="form-label">Nom d'entreprise</label>
  178.                             <input type="text" class="form-control" id="companyName" name="companyName" placeholder="Nom d'entreprise" required>
  179.                         </div>
  180.                         <div hidden>
  181.                             <label for="id_delivery" class="form-label">Nom de famille...</label>
  182.                             <input type="number" class="form-control" id="id_delivery" name="id_delivery" placeholder="Nom de famille...">
  183.                         </div>
  184.                         <div class="mb-3 col-md-6">
  185.                             <label for="name" class="form-label">Nom de famille...</label>
  186.                             <input type="text" class="form-control" id="name" name="name" placeholder="Nom de famille...">
  187.                         </div>
  188.                         <div class="col-md-6">
  189.                             <label for="firstName" class="form-label">Prénom</label>
  190.                             <input type="text" class="form-control" id="firstName" name="firstName" placeholder="Prénom...">
  191.                         </div>
  192.                         <div class="col-md-6 mb-3">
  193.                             <label for="address" class="form-label">Adresse (rue, numéro)</label>
  194.                             <input type="text" class="form-control" id="address" name="address" placeholder="Adresse..." required>
  195.                         </div>
  196.                         <div class="col-md-6">
  197.                             <label for="postal" class="form-label">Code postal</label>
  198.                             <input type="text" class="form-control" id="postal" name="postal" placeholder="Code postal..." required>
  199.                         </div>
  200.                         <div class="col-md-6 mb-3">
  201.                             <label for="town" class="form-label">Localité</label>
  202.                             <input type="text" class="form-control" id="town" name="town" placeholder="Localité..." required>
  203.                         </div>
  204.                         <div class="col-md-6 mb-3">
  205.                             <label for="country" class="form-label">Pays</label>
  206.                             <select class="form-select" id="country" name="country" required>
  207.                                 <option value="">Sélectionner un pays...</option>
  208.                                 <option value="Belgique">Belgique</option>
  209.                                 <option value="France">France</option>
  210.                                 <option value="Luxembourg">Luxembourg</option>
  211.                             </select>
  212.                         </div>
  213.                         <div class="col-md-6">
  214.                             <label for="phoneNumbers" class="form-label">Numéro de téléphone</label>
  215.                             <input type="text" class="form-control" name="phoneNumbers" id="phoneNumbers" placeholder="Numéro de téléphone..." required>
  216.                         </div>
  217.                         <!-- BLOCK DES PREFERENCES DE LIVRAISON -->
  218.                         {% block delivery_preferenc_update %}
  219.                             {% include "account/membersInformations/modal/delivery_preference.html.twig" %}
  220.                         {% endblock %}
  221.                         <!-- END BLOCK DES PREFERENCES DE LIVRAISON -->
  222.                     </form>
  223.                 </div>
  224.             </div>
  225.         </div>
  226.     </div>
  227. </div>