{foreach from=$list item=i}
    <tr>
        <td class="center visible-lg id">{$i.ref}</td>
        <td><a href="#" class="btnViewLegume" ref={$i.ref}>{$i.nom}</a></td>
        {foreach from=$groupes item=g}
        <td class="visible-md visible-lg center tarif border-left{if $i.next_tarifs[$g.ref].ref>0} has-next-tarif{/if}">{if $i.tarifs[$g.ref].ref>0}{$i.tarifs[$g.ref].print}{else}.{/if}</td>
        <td class="visible-md visible-lg center date border-right{if $i.next_tarifs[$g.ref].ref>0} has-next-tarif{/if}">{if $i.tarifs[$g.ref].ref>0}{$i.tarifs[$g.ref].date_print}{else}.{/if}</td>
        {/foreach}
        <td class="td_btn_action"><button class="btn btn-xs btn-link glyphicon glyphicon-edit btnEditLegume" ref="{$i.ref}"></button></td>
        <td class="td_btn_action td_btn_delete"><button class="btn btn-xs btn-link glyphicon glyphicon-trash btnDeleteLegume" ref="{$i.ref}" nom="{$i.nom} {$i.prenom}"></button></td>
    </tr>
{foreachelse}
    <tr>
        <td colspan="6">aucun légume</td>
    </tr>
{/foreach}