{if !$frameDisplay}{include file='structure/top.tpl'}{/if}

<table class="table table-hover scrollingTableList">
    <thead>
        <th class="center visible-lg id">
            <a href={if $order=="ref" && $sens=="ASC"}"?order=ref&sens=DESC"
                {else}"?order=ref&sens=ASC"{/if} style="text-decoration: none;">
                #{if $order=="ref"} <i class="glyphicon glyphicon-chevron-{if $sens=="ASC"}up{else}down{/if}"></i>{/if}
            </a>
        </th>
        <th class="name">
            <a href={if $order=="nom" && $sens=="ASC"}"?order=nom&sens=DESC"
                {else}"?order=nom&sens=ASC"{/if} style="text-decoration: none;">
                nom{if $order=="nom"} <i class="glyphicon glyphicon-chevron-{if $sens=="ASC"}up{else}down{/if}"></i>{/if}
            </a>
        </th>
        <th class="visible-md visible-lg groupe center">
            <a href={if $order=="groupe" && $sens=="ASC"}"?order=groupe&sens=DESC"
                {else}"?order=groupe&sens=ASC"{/if} style="text-decoration: none;">
                groupe{if $order=="groupe"} <i class="glyphicon glyphicon-chevron-{if $sens=="ASC"}up{else}down{/if}"></i>{/if}
            </a>
        </th>
        <th class="visible-md visible-lg valeur center">
            <a href={if $order=="valeur" && $sens=="ASC"}"?order=valeur&sens=DESC"
                {else}"?order=valeur&sens=ASC"{/if} style="text-decoration: none;">
                valeur{if $order=="valeur"} <i class="glyphicon glyphicon-chevron-{if $sens=="ASC"}up{else}down{/if}"></i>{/if}
            </a>
        </th>
        <th class="btn_action right" colspan="2"><button class="btn btn-xs btn-info glyphicon glyphicon-plus" id="btnAddPanier"></button></th>
    </thead>
    <tbody class="table progressLoadList" id="paniersList" start="{$list_limits.start}" end="{$list_limits.end}" rest="{$list_limits.rest}">
    {include file='paniers/paniers_list_builder.tpl'}
    </tbody>
</table>

{include file='paniers/panier_modal_view.tpl'}

<!-- MODAL ADD PANIER -->
<div class="modal fade" id="modalAddPanier" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <div class="pull-right hidden-xs">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
                    <button type="button" class="btn btn-custom btnSave">Enregistrer</button>
                </div>

                <h2 class="modal-title">
                    <img style="width:50px;" class="hidden-xs" src="img/panier.svg">
                    Ajouter un type de panier
                </h2>
            </div>
            <div class="modal-body">
                <form class="formPanier">
                    {include file='paniers/panier_form.tpl'}
                </form>
            </div>
            <div class="modal-footer visible-xs">
                <div class="pull-right">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
                    <button type="button" class="btn btn-custom btnSave">Enregistrer</button>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- end MODAL ADD PANIER -->

<!-- MODAL EDIT PANIER -->
<div class="modal fade" id="modalEditPanier" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <div class="pull-right hidden-xs">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
                    <button type="button" class="btn btn-custom btnSave">Enregistrer</button>
                </div>

                <h2 class="modal-title">
                    <img style="width:50px;" class="hidden-xs" src="img/panier.svg">
                    Modifier un type de panier
                </h2>
            </div>
            <div class="modal-body">
                <form class="formPanier">
                    {include file='paniers/panier_form.tpl'}
                </form>
            </div>
            <div class="modal-footer visible-xs">
                <div class="pull-right">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
                    <button type="button" class="btn btn-custom btnSave">Enregistrer</button>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- end MODAL EDIT PANIER -->

<!-- MODAL DELETE PANIER -->
<div class="modal fade" id="modalDeletePanier" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">
                    <img style="width:50px;" class="hidden-xs" src="img/panier.svg">
                    Supprimer un type de panier
                </h2>
            </div>
            <div class="modal-body">
                <p>Etes-vous sûr de vouloir supprimer le type de panier <b class="name">NAME</b> ?</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
                <button type="button" class="btn btn-danger btnSave">Confirmer</button>
            </div>
        </div>
    </div>
</div>
<!-- end MODAL DELETE PANIER -->

{if !$frameDisplay}{include file='structure/bottom.tpl'}{/if}