<table class="table">
    <thead>
        <tr class="head">
            <th>#</th>
            <th>type</th>
            <th>début</th>
            <th>fréquence</th>
            <th>panier</th>
            <th>livrés</th>
            <th>restant</th>
            <th>lieu</th>
        </tr>
    </thead>
    <tbody>
        {foreach from=$infos.contrats item=i}
        <tr class="{if $i.archive>0}archive{/if}{if $i.warning_nb_paniers} warning{/if}{if $i.nb_paniers_restants<=0} danger{/if}">
            <td>{$i.ref}</td>
            <td>{$i.type_nom}</td>
            <td>{$i.date_print}</td>
            <td>{$i.frequence_print}</td>
            <td>{$i.panier_type_nom}</td>
            <td>{$i.nb_paniers_livres} / {$i.nb_paniers}</td>
            <td>{$i.nb_paniers_restants}{if $i.force_eligible>0} <i class="glyphicon glyphicon-star"></i>{/if}</td>
            <td>{$i.lieu_depot_nom}</td>
        </tr>
        {foreachelse}
        <tr>
            <td colspan="8">aucun contrat</td>
        </tr>
        {/foreach}
    </tbody>
</table>