{% 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 %}
