{% extends 'layout.twig' %}
     
{% block body %}
<section class="contenu">
    <h1>{{ 'Commande' | trad }}</h1>

    {{ ariane() }}

    <article>
        <h2>
            {{ strBuild(
                'Avancement des termes de paiement de la commande @1@ du fournisseur @2@ (@3@)' | trad,
                [
                    commande.NO_CDE,
                    commande.fourniss.RS,
                    commande.fourniss.CODE,
                ]
            ) }}
        </h2>
    
{#_____________________________________________________________________________
Main table #}
<table class="table mt-base container-half" data-table-noresize>
    {#-<thead class="thead-dark">
        <tr>
            <th scope="col">{{ 'Libellé' | trad }}</th>
        </tr>
    </thead>-#}
    <tbody>
    {% for termPaie in commande.listTermPaie %}
        <tr style="cursor: pointer" id="term{{loop.index}}">
            <td class="loupe">{{ termPaie.LIBELLE | trad }}</td>
        </tr>
        <tr class="detail_ligne" id="term{{loop.index}}detail">
            <td class="pl-large" colspan="1">
                {% for condPaie in termPaie.listCondPaie %}
                    <div class="bs-row flex-y-center">
                        <div style="width: 40%">
                            {{ condPaie.LIB_EVT }}
                        </div>
                        <div class="bs-col">
                            {{ condPaie.EVT_OK ? 'Oui' | trad : 'Non' | trad }}
                        </div>
                    </div>
                {% else %}
                <span class="text-muted">{{ 'Vide' | trad }}</span>
                {% endfor %}
            </td>
        </tr>
        {% endfor %}			
    </tbody>
</table>
{#____________________________________________________________________________#}

    </form>
</section>
{% endblock %}