first commit
This commit is contained in:
68
templates/backend_partner/reservation/encours.html.twig
Normal file
68
templates/backend_partner/reservation/encours.html.twig
Normal file
@@ -0,0 +1,68 @@
|
||||
{% extends 'base_backend_partner.html.twig' %}
|
||||
|
||||
{% block title %} Réservation {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Réservation</h1>
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item active">Réservation</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Begin Page Content -->
|
||||
<div class="container-fluid">
|
||||
|
||||
{% include 'backend_admin/basic/notice.html.twig' %}
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow mb-4">
|
||||
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Liste des Réservations Encours</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="dataTablesSociete" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Client</th>
|
||||
<th>Article</th>
|
||||
<th>Quantité</th>
|
||||
<th>Montant</th>
|
||||
<th>Avance (payer en site)</th>
|
||||
<th>Reste (payer en société)</th>
|
||||
<th>Date Réglement</th>
|
||||
<th>Détail</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Client</th>
|
||||
<th>Article</th>
|
||||
<th>Quantité</th>
|
||||
<th>Montant</th>
|
||||
<th>Avance (payer en site)</th>
|
||||
<th>Reste (payer en société)</th>
|
||||
<th>Date Réglement</th>
|
||||
<th>Détail</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,74 @@
|
||||
{% extends 'base_backend_partner.html.twig' %}
|
||||
|
||||
{% block title %} Réservation {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Liste En Cours</h1>
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item active">Réservation</li>
|
||||
<li class="breadcrumb-item">Liste En Cours</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<!-- Begin Page Content -->
|
||||
<div class="container-fluid">
|
||||
|
||||
{% include 'backend_admin/basic/notice.html.twig' %}
|
||||
|
||||
<!-- DataTales Example offset-1-->
|
||||
<div class="card shadow mb-4">
|
||||
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Liste des Réservations En Cours</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="dataTablesSociete" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th>Article / Service</th>
|
||||
<th>Quantité / RDV </th>
|
||||
<th>Montant</th>
|
||||
<th>Avance <br> (payer en site)</th>
|
||||
<th>Reste <br> (payer en société)</th>
|
||||
<th>Date Achat</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for reservation in reservations %}
|
||||
{% if reservation.getType() == "ReservationArticle" %}
|
||||
<tr>
|
||||
<td>{{ reservation.getClient().getFullName() }}</td>
|
||||
<td>{{ reservation.getArticle().getTitre() }}</td>
|
||||
<td>{{ reservation.getQuantite() }}</td>
|
||||
<td>{{ reservation.getPrix() }} DT</td>
|
||||
<td>{{ reservation.getAvance() }} DT</td>
|
||||
<td>{{ (reservation.getPrix() * reservation.getQuantite()) - reservation.getAvance() }} DT</td>
|
||||
<td>{{ reservation.getDateAdd()|date("d/m/Y H:i") }} </td>
|
||||
</tr>
|
||||
{% elseif reservation.getType() == "ReservationService" %}
|
||||
<tr>
|
||||
<td>{{ reservation.getClient().getFullName() }}</td>
|
||||
<td>{{ reservation.getService().getTitre() }}</td>
|
||||
<td>{{ reservation.getDateRdv()|date("d/m/Y H:i") }}</td>
|
||||
<td>{{ reservation.getPrix() }} DT</td>
|
||||
<td>{{ reservation.getAvance() }} DT</td>
|
||||
<td>{{ reservation.getPrix() - reservation.getAvance() }} DT</td>
|
||||
<td>{{ reservation.getDateAdd()|date("d/m/Y H:i") }} </td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,82 @@
|
||||
{% extends 'base_backend_partner.html.twig' %}
|
||||
|
||||
{% block title %} Réservation {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Liste Valide</h1>
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item active">Réservation</li>
|
||||
<li class="breadcrumb-item">Liste Valider</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Begin Page Content -->
|
||||
<div class="container-fluid">
|
||||
|
||||
{% include 'backend_admin/basic/notice.html.twig' %}
|
||||
|
||||
<!-- DataTales Example offset-1-->
|
||||
<div class="card shadow mb-4">
|
||||
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Liste des Réservations Valider</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="dataTablesSociete" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date Validation</th>
|
||||
<th>Client</th>
|
||||
<th>Article / Service</th>
|
||||
<th>Quantité / RDV</th>
|
||||
<th>Montant</th>
|
||||
<th>Avance <br> (payer en site)</th>
|
||||
<th>Reste <br> (payer en société)</th>
|
||||
<th>Valider par</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for reservationValidation in reservationValidations %}
|
||||
{% if reservationValidation.getType() == "ReservationArticleValidation" %}
|
||||
{% set reservationArticle = reservationValidation.getReservationArticle() %}
|
||||
<tr>
|
||||
<td>{{ reservationValidation.getDateAdd()|date("d/m/Y H:i") }}</td>
|
||||
<td>{{ reservationArticle.getClient().getFullName() }}</td>
|
||||
<td>{{ reservationArticle.getArticle().getTitre() }}</td>
|
||||
<td>{{ reservationArticle.getQuantite() }}</td>
|
||||
<td>{{ reservationArticle.getPrix() }} DT</td>
|
||||
<td>{{ reservationArticle.getAvance() }} DT</td>
|
||||
<td>{{ (reservationArticle.getPrix() * reservationArticle.getQuantite()) - reservationArticle.getAvance() }} DT</td>
|
||||
<td>{{ reservationValidation.getPartenaire().getPartenaire().getFullName() }}</td>
|
||||
</tr>
|
||||
{% elseif reservationValidation.getType() == "ReservationServiceValidation" %}
|
||||
{% set reservationService = reservationValidation.getReservationService() %}
|
||||
<tr>
|
||||
<td>{{ reservationValidation.getDateAdd()|date("d/m/Y H:i") }}</td>
|
||||
<td>{{ reservationService.getClient().getFullName() }}</td>
|
||||
<td>{{ reservationService.getService().getTitre() }}</td>
|
||||
<td>{{ reservationService.getDateRdv()|date("d/m/Y H:i") }}</td>
|
||||
<td>{{ reservationService.getPrix() }} DT</td>
|
||||
<td>{{ reservationService.getAvance() }} DT</td>
|
||||
<td>{{ reservationService.getPrix() - reservationService.getAvance() }} DT</td>
|
||||
<td>{{ reservationValidation.getPartenaire().getPartenaire().getFullName() }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
77
templates/backend_partner/reservation/valider.html.twig
Normal file
77
templates/backend_partner/reservation/valider.html.twig
Normal file
@@ -0,0 +1,77 @@
|
||||
{% extends 'base_backend_partner.html.twig' %}
|
||||
|
||||
{% block title %} Réservation {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<!-- Page Heading -->
|
||||
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0 text-gray-800">Réservation</h1>
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item active">Réservation</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Begin Page Content -->
|
||||
<div class="container-fluid">
|
||||
|
||||
{% include 'backend_admin/basic/notice.html.twig' %}
|
||||
|
||||
<!-- DataTales Example -->
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Valider une Réservation d'article</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{ form_start(formArticle, {'action': path('backend_partner_reservation_valider_article'), 'method': 'POST'}) }}
|
||||
<div class="row g-3">
|
||||
<div class="col-md-2">
|
||||
{{ form_label(formArticle.reservnumarticle, 'Réservation Numéro:', {'attr': {'class': 'form-label'}}) }}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
{{ form_widget(formArticle.reservnumarticle, {'attr': {'class': 'form-control'}}) }}
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
{{ form_widget(formArticle.save, {'label': "Valider", 'attr': {'class': 'w-90 btn btn-primary '}}) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(formArticle) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<br><br><br>
|
||||
|
||||
|
||||
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Valider une Réservation d'un Service</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{ form_start(formService, {'action': path('backend_partner_reservation_valider_service'), 'method': 'POST'}) }}
|
||||
<div class="row g-3">
|
||||
<div class="col-md-2">
|
||||
{{ form_label(formService.reservnumservice, 'Réservation Numéro:', {'attr': {'class': 'form-label'}}) }}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
{{ form_widget(formService.reservnumservice, {'attr': {'class': 'form-control'}}) }}
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
{{ form_widget(formService.save, {'label': "Valider", 'attr': {'class': 'w-90 btn btn-primary '}}) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(formService) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user