<div class="my-base bg_form p-base ">
    <h3>{{ 'Liste des bons de sortie' | trad }}</h3>
    <table class="table table-hover table-bg-row">
        <thead class="thead-dark">
            <tr>
                <th width='10%'>{{ 'N°BS' | trad }}</th>
                <th width='10%'>{{ 'Validé le' | trad }}</th>
                <th width='15%'>{{ 'Site de stock' | trad }}</th>
                <th width='10%'>{{ 'Tiers destinataire' | trad }}</th>
                <th width='10%'>{# Action #}</th>
            </tr>
        </thead>
        {% for bonSortie in listBonSortie %}
        <tr id="bs-{{ bonSortie.NO_BS }}">
            <td>{{ bonSortie.NO_BS }}</td>
            <td>{{ bonSortie.DTE_VALID == '00000000' ? 
                'Non validé' | trad:
                bonSortie.DTE_VALID | dateTrad
            }}</td>
            <td>{{ bonSortie.SITE }}</td>
            <td>{{ bonSortie.DEST }}</td>
            <td class="parametrage">
                {{ menuContextuel(
                    'bs-' ~ bonSortie.NO_BS,
                    false,
                    bonSortie.menu
                ) }}
            </td>
        </tr>
        {% else %}
        <tr>
            <td class="text-muted text-center" colspan="8">
                {{- 'Aucun élément' | trad -}}
            </td>
        </tr>
        {% endfor %}
    </table>
</div>