<table class="panier legumesTotal">
    <thead>
        <tr class="title">
            <th class="titre" colspan="5">TOTAL :</th>
            <th class="total montant">{$infos.total_legumes.montant|string_format:"%.2f"}</th>
            <th class="total unite">€</th>
        </tr>
        <tr class="head">
            <th class="nom">légume</th>
            <th class="tarif" colspan="2">tarif</th>
            <th class="quantite" colspan="2">quantité</th>
            <th class="montant" colspan="2">montant</th>
        </tr>
    </thead>
    <tbody>
        {foreach from=$infos.total_legumes.legumes item=l}
        <tr class="legume">
            <td class="nom">{$l.nom}</td>
            <td class="tarif">{$l.tarif_prix|string_format:"%.2f"}</td>
            <td class="tarif_unite unite">€/{$l.tarif_unite_acro}</td>
            <td class="quantite">{if $l.tarif_unite=="kg"}{$l.quantite|string_format:"%.3f"}{else}{$l.quantite|string_format:"%.d"}{/if}</td>
            <td class="quantite_unite unite">{$l.tarif_unite_acro}</td>
            <td class="montant">{($l.montant)|string_format:"%.2f"}</td>
            <td class="montant_unite unite">€</td>
        </tr>
        {foreachelse}
        <tr>
            <td colspan="7">aucun légume</td>
        </tr>
        {/foreach}
    </tbody>
</table>