templates/modalAddress/modal_address.html.twig line 1
<div class="modal fade" id="addressModal" aria-hidden="true" aria-labelledby="addressModal" tabindex="-1">
<div class="modal-dialog modal-xl modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addressModal">Adresses de livraison</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body row mx-4">
{% if informations != null and informations[0].deliveryAddress != null %}
{% for index, address in informations[0].deliveryAddress %}
<div class="first-address-delivery text-center col-md-4">
<div class="card mt-5 mb-5">
<p class="card-header">
Adresse {{ index + 1 }}</p>
<div class="home-address">
<i class="fa-solid fa-house"></i>
<div class="informations-address">
<span class="id-address" hidden>{{ address.id }}</span>
<span class="companyname-address">{{ address.companyName }}</span>
<span class="firstname-address">{{ address.firstName }}</span>
<span class="name-address">{{ address.name }}</span><br/>
<span class="street-address">{{ address.address }}</span>,
<span class="cp-address">{{ address.postal }}</span>
<span class="town-address">{{ address.town }}</span><br/>
<span class="country-address">{{ address.country }}</span><br/>
<span class="tel-address">{{ address.phoneNumber }}</span>
<!-- HOURLY DAY -->
<span class="hourlyMonday d-none">{% if address.hourlyMonday != null %}{{ address.hourlyMonday }}{% endif %}</span>
<span class="hourlyMorningMonday d-none">{% if address.hourlyMorningMonday != null %}{{ address.hourlyMorningMonday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningMondayEnd d-none">{% if address.hourlyMorningMondayEnd != null %}{{ address.hourlyMorningMondayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyTuesday d-none">{% if address.hourlyTuesday != null %}{{ address.hourlyTuesday ? 'true' : 'false' }}{% endif %}</span>
<span class="hourlyMorningTuesday d-none">{% if address.hourlyMorningTuesday != null %}{{ address.hourlyMorningTuesday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningTuesdayEnd d-none">{% if address.hourlyMorningTuesdayEnd != null %}{{ address.hourlyMorningTuesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyWednesday d-none">{% if address.hourlyWednesday != null %}{{ address.hourlyWednesday ? 'true' : 'false' }}{% endif %}</span>
<span class="hourlyMorningWednesday d-none">{% if address.hourlyMorningWednesday != null %}{{ address.hourlyMorningWednesday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningWednesdayEnd d-none">{% if address.hourlyMorningWednesdayEnd != null %}{{ address.hourlyMorningWednesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyThursday d-none">{% if address.hourlyThursday != null %}{{ address.hourlyThursday ? 'true' : 'false' }}{% endif %}</span>
<span class="hourlyMorningThursday d-none">{% if address.hourlyMorningThursday != null %}{{ address.hourlyMorningThursday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningThursdayEnd d-none">{% if address.hourlyMorningThursdayEnd != null %}{{ address.hourlyMorningThursdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyFriday d-none">{% if address.hourlyFriday != null %}{{ address.hourlyFriday ? 'true' : 'false' }}{% endif %}</span>
<span class="hourlyMorningFriday d-none">{% if address.hourlyMorningFriday != null %}{{ address.hourlyMorningFriday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningFridayEnd d-none">{% if address.hourlyMorningFridayEnd != null %}{{ address.hourlyMorningFridayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlySaturday d-none">{% if address.hourlySaturday != null %}{{ address.hourlySaturday ? 'true' : 'false' }}{% endif %}</span>
<span class="hourlyMorningSaturday d-none">{% if address.hourlyMorningSaturday != null %}{{ address.hourlyMorningSaturday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningSaturdayEnd d-none">{% if address.hourlyMorningSaturdayEnd != null %}{{ address.hourlyMorningSaturdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlySunday d-none">{% if address.hourlySunday != null %}{{ address.hourlySunday ? 'true' : 'false' }}{% endif %}</span>
<span class="hourlyMorningSunday d-none">{% if address.hourlyMorningSunday != null %}{{ address.hourlyMorningSunday|date("H:i", "UTC") }}{% endif %}</span>
<span class="hourlyMorningSundayEnd d-none">{% if address.hourlyMorningSundayEnd != null %}{{ address.hourlyMorningSundayEnd|date("H:i", "UTC") }}{% endif %}</span>
<!-- END HOURLY DAY -->
{# PREFERENCES #}
<span class="monday d-none">{% if address.monday != null %}{{ address.monday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningMonday d-none">{% if address.morningMonday != null %}{{ address.morningMonday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningMondayEnd d-none">{% if address.morningMondayEnd != null %}{{ address.morningMondayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonMonday d-none">{% if address.afternoonMonday != null %}{{ address.afternoonMonday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonMondayEnd d-none">{% if address.afternoonMondayEnd != null %}{{ address.afternoonMondayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="tuesday d-none">{% if address.tuesday != null %}{{ address.tuesday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningTuesday d-none">{% if address.morningTuesday != null %}{{ address.morningTuesday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningTuesdayEnd d-none">{% if address.morningTuesdayEnd != null %}{{ address.morningTuesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonTuesday d-none">{% if address.afternoonTuesday != null %}{{ address.afternoonTuesday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonTuesdayEnd d-none">{% if address.afternoonTuesdayEnd != null %}{{ address.afternoonTuesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="wednesday d-none">{% if address.morningWednesday != null %}{{ address.wednesday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningWednesday d-none">{% if address.morningWednesday != null %}{{ address.morningWednesday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningWednesdayEnd d-none">{% if address.morningWednesdayEnd != null %}{{ address.morningWednesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonWednesday d-none">{% if address.afternoonWednesday != null %}{{ address.afternoonWednesday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonWednesdayEnd d-none">{% if address.afternoonWednesdayEnd != null %}{{ address.afternoonWednesdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="thursday d-none">{% if address.thursday != null %}{{ address.thursday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningThursday d-none">{% if address.morningThursday != null %}{{ address.morningThursday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningThursdayEnd d-none">{% if address.morningThursdayEnd != null %}{{ address.morningThursdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonThursday d-none">{% if address.afternoonThursday != null %}{{ address.afternoonThursday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonThursdayEnd d-none">{% if address.afternoonThursdayEnd != null %}{{ address.afternoonThursdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="friday d-none">{% if address.friday != null %}{{ address.friday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningFriday d-none">{% if address.morningFriday != null %}{{ address.morningFriday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningFridayEnd d-none">{% if address.morningFridayEnd != null %}{{ address.morningFridayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonFriday d-none">{% if address.afternoonFriday != null %}{{ address.afternoonFriday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonFridayEnd d-none">{% if address.afternoonFridayEnd != null %}{{ address.afternoonFridayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="saturday d-none">{% if address.saturday != null %}{{ address.saturday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningSaturday d-none">{% if address.morningSaturday != null %}{{ address.morningSaturday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningSaturdayEnd d-none">{% if address.morningSaturdayEnd != null %}{{ address.morningSaturdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonSaturday d-none">{% if address.afternoonSaturday != null %}{{ address.afternoonSaturday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonSaturdayEnd d-none">{% if address.afternoonSaturdayEnd != null %}{{ address.afternoonSaturdayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="sunday d-none">{% if address.sunday != null %}{{ address.sunday ? 'true' : 'false' }}{% endif %}</span>
<span class="morningSunday d-none">{% if address.morningSunday != null %}{{ address.morningSunday|date("H:i", "UTC") }}{% endif %}</span>
<span class="morningSundayEnd d-none">{% if address.morningSundayEnd != null %}{{ address.morningSundayEnd|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonSunday d-none">{% if address.afternoonSunday != null %}{{ address.afternoonSunday|date("H:i", "UTC") }}{% endif %}</span>
<span class="afternoonSundayEnd d-none">{% if address.afternoonSundayEnd != null %}{{ address.afternoonSundayEnd|date("H:i", "UTC") }}{% endif %}</span>
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
<div class="modal-footer d-flex justify-content-between">
{# <a href="{{ path('profile') }}">#}
<button type="button" class="modal-btn-update btn btn-dark hover-transition btnAddAddress" data-bs-target="#addAddressModal_id" data-bs-toggle="modal"
data-bs-dismiss="modal">Ajouter une adresse</button>
{# </a>#}
</div>
</div>
</div>
</div>
<div class="modal fade" id="addAddressModal_id" aria-hidden="true" aria-labelledby="addAddressModalLabel" tabindex="-1">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title fw-bold" id="addAddressModal">Nouvelle adresse</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-3">
<div class="section-newAddressDelivery">
<form class="row" method="post" action="{{ path('profileCreateDeliveryAddress') }}">
<div class="mb-3 col-md-6">
<label for="companyName" class="form-label">Nom d'entreprise</label>
<input type="text" class="form-control" id="companyName" name="companyName" placeholder="Nom d'entreprise" required>
</div>
<div class="mb-3 col-md-6">
<label for="name" class="form-label">Nom de famille</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Nom de famille...">
</div>
<div class="col-md-6">
<label for="firstName" class="form-label">Prénom</label>
<input type="text" class="form-control" id="firstName" name="firstName" placeholder="Prénom...">
</div>
<div class="col-md-6 mb-3">
<label for="address" class="form-label">Adresse (rue, numéro)</label>
<input type="text" class="form-control" id="address" name="address" placeholder="Adresse..." required>
</div>
<div class="col-md-6">
<label for="postal" class="form-label">Code postal</label>
<input type="text" class="form-control" id="postal" name="postal" placeholder="Code postal..." required>
</div>
<div class="col-md-6 mb-3">
<label for="town" class="form-label">Localité</label>
<input type="text" class="form-control" id="town" name="town" placeholder="Localité..." required>
</div>
<div class="col-md-6 mb-3">
<label for="country" class="form-label">Pays</label>
<select class="form-select" id="country" name="country" required>
<option value="">Sélectionner un pays...</option>
<option value="Belgique">Belgique</option>
<option value="France">France</option>
<option value="Luxembourg">Luxembourg</option>
</select>
</div>
<div class="col-md-6">
<label for="phoneNumbers" class="form-label">Numéro de téléphone</label>
<input type="text" class="form-control" name="phoneNumbers" id="phoneNumbers"
placeholder="Numéro de téléphone..." required>
</div>
<div class="date-addressDelivery mt-3 d-flex justify-content-center modalPrefDelivery">
<h5 class="title-dataAddressDelivery mb-4 mt-4 fw-bold">Préférences de livraison
<span class="businessHours fw-light"> (Horaires d'ouverture)</span>
</h5>
</div>
<!-- BLOCK DES PREFERENCES DE LIVRAISON -->
{% block delivery_preference %}
{% include "account/membersInformations/modal/delivery_preference.html.twig" %}
{% endblock %}
<!-- END BLOCK DES PREFERENCES DE LIVRAISON -->
</form>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="updateAddressModal" aria-hidden="true" aria-labelledby="updateAddressModal" tabindex="-1">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="updateAddressModal2">Modifier l'adresse</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-3">
<div class="section-newAddressDelivery">
<form class="row" method="post" action="{{ path('profileUpdateDeliveryAddress') }}">
<div class="mb-3 col-md-6">
<label for="companyName" class="form-label">Nom d'entreprise</label>
<input type="text" class="form-control" id="companyName" name="companyName" placeholder="Nom d'entreprise" required>
</div>
<div hidden>
<label for="id_delivery" class="form-label">Nom de famille...</label>
<input type="number" class="form-control" id="id_delivery" name="id_delivery" placeholder="Nom de famille...">
</div>
<div class="mb-3 col-md-6">
<label for="name" class="form-label">Nom de famille...</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Nom de famille...">
</div>
<div class="col-md-6">
<label for="firstName" class="form-label">Prénom</label>
<input type="text" class="form-control" id="firstName" name="firstName" placeholder="Prénom...">
</div>
<div class="col-md-6 mb-3">
<label for="address" class="form-label">Adresse (rue, numéro)</label>
<input type="text" class="form-control" id="address" name="address" placeholder="Adresse..." required>
</div>
<div class="col-md-6">
<label for="postal" class="form-label">Code postal</label>
<input type="text" class="form-control" id="postal" name="postal" placeholder="Code postal..." required>
</div>
<div class="col-md-6 mb-3">
<label for="town" class="form-label">Localité</label>
<input type="text" class="form-control" id="town" name="town" placeholder="Localité..." required>
</div>
<div class="col-md-6 mb-3">
<label for="country" class="form-label">Pays</label>
<select class="form-select" id="country" name="country" required>
<option value="">Sélectionner un pays...</option>
<option value="Belgique">Belgique</option>
<option value="France">France</option>
<option value="Luxembourg">Luxembourg</option>
</select>
</div>
<div class="col-md-6">
<label for="phoneNumbers" class="form-label">Numéro de téléphone</label>
<input type="text" class="form-control" name="phoneNumbers" id="phoneNumbers" placeholder="Numéro de téléphone..." required>
</div>
<!-- BLOCK DES PREFERENCES DE LIVRAISON -->
{% block delivery_preferenc_update %}
{% include "account/membersInformations/modal/delivery_preference.html.twig" %}
{% endblock %}
<!-- END BLOCK DES PREFERENCES DE LIVRAISON -->
</form>
</div>
</div>
</div>
</div>
</div>