first commit
This commit is contained in:
20
templates/frontend/reservation_panier/paiement.html.twig
Normal file
20
templates/frontend/reservation_panier/paiement.html.twig
Normal file
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<body>
|
||||
<br><br><br><br><br><br><br><br>
|
||||
<center>
|
||||
<img src="{{ asset('images/font/spinner.png') }}" alt="">
|
||||
</center>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
// sleep time expects milliseconds
|
||||
function sleep (time) {
|
||||
return new Promise((resolve) => setTimeout(resolve, time));
|
||||
}
|
||||
|
||||
// Usage!
|
||||
sleep(3500).then(() => {
|
||||
window.open("{{ path('frontend_paiement_valider') }}", "_self");
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
165
templates/frontend/reservation_panier/panier_index.html.twig
Normal file
165
templates/frontend/reservation_panier/panier_index.html.twig
Normal file
@@ -0,0 +1,165 @@
|
||||
{% extends 'base_frontend.html.twig' %}
|
||||
|
||||
{% block title %} Détail Panier {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="breadcrumb">
|
||||
<div class="breadcrumb-inner">
|
||||
<ul class="list-inline list-unstyled">
|
||||
<li><a href="{{ path('frontend_home_index') }}">Accueil</a></li>
|
||||
<li><a href="{{ path('frontend_panier_index') }}">Panier</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.breadcrumb-inner -->
|
||||
</div>
|
||||
|
||||
<div class="body-content outer-top-xs">
|
||||
<div class="row ">
|
||||
<div class="shopping-cart">
|
||||
<div class="shopping-cart-table ">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart-romove item">Supprimer</th>
|
||||
<th class="cart-description item">Image</th>
|
||||
<th class="cart-product-name item">Nom d'Article / Service</th>
|
||||
<th class="cart-qty item">Quantité / Date</th>
|
||||
<th class="cart-sub-total item">Prix</th>
|
||||
<th class="cart-total last-item">Avance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- /thead -->
|
||||
<tbody>
|
||||
{% set TotalAvance = 0 %}
|
||||
{% set FraisService = 0 %}
|
||||
{% for key, panier in paniers %}
|
||||
|
||||
{% if panier['type'] == 'SERVICE' %}
|
||||
{% set pathUrl = path('frontend_service_detail', {id: panier['id']} ) %}
|
||||
{% elseif panier['type'] == 'ARTICLE' %}
|
||||
{% set pathUrl = path('frontend_article_detail', {id: panier['id']} ) %}
|
||||
{% endif %}
|
||||
|
||||
<tr>
|
||||
<td class="romove-item">
|
||||
<a href="{{ path('frontend_panier_remove', {idDele: key}) }}" title="annuler" class="icon">
|
||||
<i class="fa-solid fa-trash-can"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart-image">
|
||||
<a class="entry-thumbnail" href="{{ pathUrl }}">
|
||||
<img src="{{ asset(panier['image']) }}" alt="">
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart-product-name-info">
|
||||
<h4 class='cart-product-description'>
|
||||
<a href="{{ pathUrl }}">{{ panier['titre'] }}</a>
|
||||
</h4>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="rating rateit-small"></div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="reviews">
|
||||
{% if panier['id'] == 'SERVICE' %}
|
||||
{{ panier['data']['nom'] }} {{ panier['data']['prenom'] }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
<div class="cart-product-info">
|
||||
<span class="product-color">{{ panier['type'] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
{% if panier['type'] == 'ARTICLE' %}
|
||||
<td class="cart-product-quantity">
|
||||
<div class="quant-input">
|
||||
{{ panier['prix'] }} * {{ panier['qtyRdv'] }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="cart-product-sub-total">
|
||||
<span class="cart-sub-total-price">{{ panier['prix']* panier['qtyRdv'] }} DT</span>
|
||||
</td>
|
||||
{% elseif panier['type'] == 'SERVICE' %}
|
||||
<td class="cart-product-quantity">
|
||||
<div class="quant-input">
|
||||
{{ panier['qtyRdv'] }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="cart-product-sub-total">
|
||||
<span class="cart-sub-total-price">{{ panier['prix'] }} DT</span>
|
||||
</td>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
<td class="cart-product-grand-total">
|
||||
<span class="cart-grand-total-price">{{ panier['avance'] }} DT</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% set TotalAvance = TotalAvance + panier['avance'] %}
|
||||
{% set FraisService = FraisService + panier['frais'] %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<!-- /tbody -->
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<div class="shopping-cart-btn">
|
||||
<span class="">
|
||||
<a href="{{ path('frontend_home_index') }}" class="btn btn-upper btn-primary outer-left-xs">Continue le navigation</a>
|
||||
<a href="#" class="btn btn-upper btn-primary pull-right outer-right-xs">Modifier le Panier</a>
|
||||
</span>
|
||||
</div>
|
||||
<!-- /.shopping-cart-btn -->
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- /table -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4 col-sm-12 col-md-offset-8 cart-shopping-total">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<div class="cart-sub-total">
|
||||
Total Avance<span class="inner-left-md">{{ TotalAvance }} DT</span>
|
||||
</div>
|
||||
<div class="cart-sub-total">
|
||||
Frais de service<span class="inner-left-md">{{ FraisService }} DT</span>
|
||||
</div>
|
||||
<div class="cart-grand-total">
|
||||
Total A Payer<span class="inner-left-md">{{ TotalAvance + FraisService }} DT</span>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- /thead -->
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="cart-checkout-btn pull-right">
|
||||
<a href="{{ path('frontend_paiement_index') }}" class="btn btn-primary checkout-btn">Payer</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<!-- /tbody -->
|
||||
</table>
|
||||
<!-- /table -->
|
||||
</div>
|
||||
<!-- /.cart-shopping-total -->
|
||||
</div>
|
||||
<!-- /.shopping-cart -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- /.body-content -->
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,139 @@
|
||||
{% extends 'base_frontend.html.twig' %}
|
||||
|
||||
{% block title %} Détail Panier {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="breadcrumb">
|
||||
<div class="breadcrumb-inner">
|
||||
<ul class="list-inline list-unstyled">
|
||||
<li><a href="{{ path('frontend_home_index') }}">Accueil</a></li>
|
||||
<li><a href="{{ path('frontend_panier_index') }}">Mes Réservations</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.breadcrumb-inner -->
|
||||
</div>
|
||||
|
||||
<div class="body-content outer-top-xs">
|
||||
<div class="row ">
|
||||
<div class="shopping-cart">
|
||||
<div class="shopping-cart-table ">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart-romove item">Document</th>
|
||||
<th class="cart-description item">Image</th>
|
||||
<th class="cart-description item">Date Réservation</th>
|
||||
<th class="cart-product-name item">Nom d'Article / Service</th>
|
||||
<th class="cart-qty item">Quantité / Date RDV</th>
|
||||
<th class="cart-sub-total item">Prix</th>
|
||||
<th class="cart-total last-item">Avance</th>
|
||||
<th class="cart-total last-item">État</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- /thead -->
|
||||
<tbody>
|
||||
{% for key, reservation in reservations %}
|
||||
|
||||
{% if reservation.getType() == 'ReservationArticle' %}
|
||||
{% set article = reservation.getArticle() %}
|
||||
<tr>
|
||||
<td class="romove-item">
|
||||
<a href="{{ path('frontend_reservation_export_pdf_article', {id:reservation.id} ) }}" title="télécharger la réservation en PDF" class="icon">
|
||||
<i class="fa-solid fa-file-pdf fa-2xl"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart-image">
|
||||
<a class="entry-thumbnail" href="{{ path('frontend_article_detail', {id:article.getId()}) }}">
|
||||
<img src="{{ asset('uploads/images/articles/' ~ article.getImageDefault()) }}" alt="{{ article.getTitre() }}">
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart-product-quantity">
|
||||
<div class="quant-input">
|
||||
{{ reservation.getDateAdd()|date("d/m/Y H:i") }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="cart-product-name-info">
|
||||
<h4 class='cart-product-description'>
|
||||
<a href="{{ path('frontend_article_detail', {id:article.getId()}) }}">
|
||||
{{ article.getTitre() }}
|
||||
</a>
|
||||
</h4>
|
||||
</td>
|
||||
<td class="cart-product-quantity">
|
||||
<div class="quant-input">
|
||||
{{ reservation.getQuantite() }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="cart-product-sub-total">
|
||||
<span class="cart-sub-total-price">{{ reservation.getPrix() }} DT</span>
|
||||
</td>
|
||||
<td class="cart-product-grand-total">
|
||||
<span class="cart-grand-total-price">{{ reservation.getAvance() }} DT</span>
|
||||
</td>
|
||||
<td class="cart-product-grand-total">
|
||||
<span class="cart-grand-total-price">
|
||||
<i class="fa-solid fa-clipboard fa-2xl"></i>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% elseif reservation.getType() == 'ReservationService' %}
|
||||
{% set service = reservation.getService() %}
|
||||
<tr>
|
||||
<td class="romove-item">
|
||||
<a href="{{ path('frontend_reservation_export_pdf_service', {id:reservation.id} ) }}" title="télécharger la réservation en PDF" class="icon">
|
||||
<i class="fa-solid fa-file-pdf fa-2xl"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart-image">
|
||||
<a class="entry-thumbnail" href="{{ path('frontend_service_detail', {id:service.getId()}) }}">
|
||||
<img src="{{ asset('uploads/images/services/' ~ service.getImageDefault()) }}" alt="{{ service.getTitre() }}">
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart-product-quantity">
|
||||
<div class="quant-input">
|
||||
{{ reservation.getDateAdd()|date("d/m/Y H:i") }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="cart-product-name-info">
|
||||
<h4 class='cart-product-description'>
|
||||
<a href="{{ path('frontend_service_detail', {id:service.getId()}) }}">
|
||||
{{ service.getTitre() }}
|
||||
</a>
|
||||
</h4>
|
||||
</td>
|
||||
<td class="cart-product-quantity">
|
||||
<div class="quant-input">
|
||||
{{ reservation.getDateRdv()|date("d/m/Y H:i") }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="cart-product-sub-total">
|
||||
<span class="cart-sub-total-price">{{ reservation.getPrix() }} DT</span>
|
||||
</td>
|
||||
<td class="cart-product-grand-total">
|
||||
<span class="cart-grand-total-price">{{ reservation.getAvance() }} DT</span>
|
||||
</td>
|
||||
<td class="cart-product-grand-total">
|
||||
<span class="cart-grand-total-price">
|
||||
<i class="fa-solid fa-clipboard fa-2xl"></i>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /table -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- /.cart-shopping-total -->
|
||||
</div>
|
||||
<!-- /.shopping-cart -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- /.body-content -->
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<body>
|
||||
Réservation Numéro:<b>{{ reservationArticle.getReference() }}</b><br>
|
||||
Date: {{ reservationArticle.getDateAdd()|date("d/m/Y H:i:s") }}
|
||||
<br><br>
|
||||
{% set article = reservationArticle.getArticle() %}
|
||||
Article:
|
||||
<ul>
|
||||
<li>Titre: {{ article.getTitre() }}</li>
|
||||
<li>Quantité: {{ reservationArticle.quantite }}</li>
|
||||
<li>Prix: {{ reservationArticle.prix * reservationArticle.quantite }} DT</li>
|
||||
<li>Avance Payer dans le site: {{ reservationArticle.avance }} DT</li>
|
||||
<li><font size="5">Reste à Payer dans société: <b>{{ (reservationArticle.prix * reservationArticle.quantite) - reservationArticle.avance }} </b>DT</font></li>
|
||||
</ul>
|
||||
{% set client = reservationArticle.getClient() %}
|
||||
Client:
|
||||
<ul>
|
||||
<li>Nom: {{ client.firstname }}</li>
|
||||
<li>Prénom: {{ client.lastname }}</li>
|
||||
<li>Date de naissance: {{ client.getBirthdate()|date("d/m/Y") }}</li>
|
||||
</ul>
|
||||
<br>
|
||||
{% set societe = article.getSociete() %}
|
||||
Sociéte:
|
||||
<ul>
|
||||
<li>Nom: {{ societe.getNom() }}</li>
|
||||
<li>Adress: {{ article.getAdress() }}</li>
|
||||
<li>Téléphone: {{ societe.getTelephone() }}</li>
|
||||
</ul>
|
||||
<br>
|
||||
Régle:
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,40 @@
|
||||
<html>
|
||||
<body>
|
||||
Réservation Numéro: <b>{{ reservationService.getReference() }}</b><br>
|
||||
Date: {{ reservationService.getDateAdd()|date("d/m/Y H:i:s") }}
|
||||
<br><br>
|
||||
{% set service = reservationService.getService() %}
|
||||
{% set serviceRdvReservation = reservationService.getServiceRdvReservation() %}
|
||||
Service:
|
||||
<ul>
|
||||
<li>Référence: ******</li>
|
||||
<li>Rendez-Vous: {{ serviceRdvReservation.getDateDebut()|date("d/m/Y H:i:s") }}</li>
|
||||
<li>Prix: {{ reservationService.prix }}DT</li>
|
||||
<li>Avance Payer dans le site: {{ reservationService.avance }}DT</li>
|
||||
<li><font size="5">Reste à Payer dans société: <b>{{ reservationService.prix - (reservationService.avance + reservationService.frais) }}</b>DT</font></li>
|
||||
</ul>
|
||||
{% set client = reservationService.getClient() %}
|
||||
Client:
|
||||
<ul>
|
||||
<li>Nom: {{ client.firstname }}</li>
|
||||
<li>Prénom: {{ client.lastname }}</li>
|
||||
<li>Date de naissance: {{ client.getBirthdate()|date("d/m/Y") }}</li>
|
||||
</ul>
|
||||
<br>
|
||||
{% set societe = service.getSociete() %}
|
||||
Sociéte:
|
||||
<ul>
|
||||
<li>Nom: {{ societe.getNom() }}</li>
|
||||
<li>Adress: {{ service.getAdress() }}</li>
|
||||
<li>Téléphone: {{ societe.getTelephone() }}</li>
|
||||
</ul>
|
||||
<br>
|
||||
Régle:
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum...
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user