%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emtnaeewxm/www/src/EEM/PieceBundle/Resources/views/piece/
Upload File :
Create Path :
Current File : /home/emtnaeewxm/www/src/EEM/PieceBundle/Resources/views/piece/show.html.twig

{% extends 'layout_admin.html.twig' %}

{% block body %}
    <div class="row">
        <div class="col-md-12">
            <h4>Détails {{ typePiece }}</h4>
            <hr class="hr_titre">
        </div>
    </div>
    <div class="row m_b_20">
        <div class="col-md-12">
            <ul class="ul_action_bouton">
                <li>
                    {{ form_start(delete_form) }}
                    <button type="submit" class="btn btn-danger btn-sm"><span class="fa fa-trash-alt"></span> Supprimer</button>
                    {{ form_end(delete_form) }}
                </li>
                <li>
                    <a href="{{ path('piece_edit', { 'id': piece.id }) }}" class="btn btn-warning btn-sm"><span
                                class="fa fa-edit"></span> Modifier</a>
                </li>
                <li>
                    <a href="{{ path('piece_index',{'type': type_piece}) }}" class="btn btn-info btn-sm"><span
                                class="fa fa-bars"></span> Liste
                        des {{ type_piece!='devis' ? typePiece~'s': typePiece }}</a>
                </li>
                <li>
                    <a href="{{ path('imprimer_piece', { 'id': piece.id }) }}" target="_blank" class="btn btn-secondary btn-sm"><span
                                class="fa fa-print"></span> Imprimer</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="row m_b_20">
        <div class="col-md-6">
            <b>Client: </b>{{ piece.client.prenom }} {{ piece.client.nom }}<br>
            <b>Matricule fiscal: </b>{{ piece.client.mf }}<br>
            <b>Adresse: </b>{{ piece.client.prenom }} {{ piece.client.nom }}<br>
        </div>
        <div class="col-md-6">
            <p><b style="font-size:18px;">{{ abvTypePiece }}{{ piece.annee }}{{ piece.num|numeroPiece }}</b></p>
            <p><b>Date:</b> {{ piece.datePiece ? piece.datePiece|date('d/m/Y') : '' }}</p>
        </div>
    </div>
    <div class="row m_b_20">
        <div class="col-md-12">
           <table class="table table-bordered">
               <thead>
               <tr>
                   <th>Code à barre</th>
                   <th>Article</th>
                   <th class="text-right">P.U.</th>
                   <th class="text-center">Qté</th>
                   <th class="text-right">P.T.</th>
               </tr>
               </thead>
               <tbody>
               {% set total_piece=0 %}
               {% for ligne_piece in piece.lignePieces %}
                   {% set total_piece=total_piece + ligne_piece.totalPrix %}
                   <tr>
                       <td>{{ ligne_piece.codeABarre }}</td>
                       <td>{{ ligne_piece.name }}</td>
                       <td class="text-right">{{ ligne_piece.prix|number_format(3,'.',' ') }}</td>
                       <td class="text-center">{{ ligne_piece.qte }}</td>
                       <td class="text-right">{{ ligne_piece.totalPrix }}</td>
                   </tr>
               {% endfor %}
               </tbody>
               <tr>
                   <th colspan="4">Total</th>
                   <th class="text-right">{{ total_piece|number_format(3,'.',' ') }}</th>
               </tr>
           </table>
        </div>
    </div>
{% endblock %}

Zerion Mini Shell 1.0