<table class="table">
    <thead>
        <tr class="head">
            <th class="visible-md">#</th>
            <th class="visible-md">type</th>
            <th>début</th>
            <th>fréquence</th>
            <th>panier</th>
            <th>livrés</th>
            <th class="visible-md">restant</th>
            <th class="visible-md">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 class="visible-md">{$i.ref}</td>
            <td class="visible-md">{$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 class="visible-md">{$i.nb_paniers_restants}{if $i.force_eligible>0} <i class="glyphicon glyphicon-star"></i>{/if}</td>
            <td class="visible-md">{$i.lieu_depot_nom}</td>
        </tr>
        {foreachelse}
        <tr>
            <td colspan="8">aucun contrat</td>
        </tr>
        {/foreach}
    </tbody>
</table>