<div class="row">
    <div >
        <h3>Groupe Remises</h3>
        <div class="loader" id="Loaderdiv" style=" margin:0 auto;"></div>
        <div class="alert bg-danger closeable" role="alert" id="msgError" style="margin: 80px">
            {{error_response}}.
            <i class="ion-close-round" style="float: right;" ng-click="hideMsgError()"></i>
        </div>
        <div class="col-md-8 col-md-offset-2">
            <div class="alert bg-success closeable" role="alert" id="msgTop">
                <strong>Succès!</strong> La remise a bien été mise à jour.
                <i class="ion-close-round" style="float: right;" ng-click="hideMsg()"></i>
            </div>
            <div class="animate-bottom" id="divTable">
                <div class="table-responsive">
                    <table class="table table-bordered">
                        <thead >
                        <tr class="tr-background-color">
                            <th>ID</th>
                            <th>Nom</th>
                            <th></th>
                        </tr>
                        </thead>
                        <tr dir-paginate="item in remises |itemsPerPage:remisesPerPage " total-items="totalRemises" current-page="pagination.currentRemise" class="align-td-center ">
                            <td >{{item.id}}</td>
                            <td >{{item.ERP_group_code}}</td>
                            <td class="div-centred-td">
                                <button class="btn btn-flexo btn-sm" ui-sref="consultationRemise({id : item.id })">Consulter</button>
                                <button class="btn btn-flexo btn-sm" ui-sref="updateRemise({id : item.id })">Modifier</button>
                                <!--button class="btn btn-flexo btn-sm" ng-click="deactivateRemise(item.id , 0)" ng-show="item.deactivated == 1" style="width: 80px">Activer</button-->
                                <!--button class="btn btn-flexo btn-sm" ng-click="deactivateRemise(item.id , 1)" ng-show="item.deactivated == 0" style="width: 80px">Désactiver</button-->
                            </td>
                        </tr>
                    </table>
                    <dir-pagination-controls on-page-change="pageChanged(newPageNumber)"  style="float: right"></dir-pagination-controls>

                </div></br></br>
                <button name="add" class="btn btn-flexo" style="float: right" ui-sref="addRemise" >Ajouter</button>
            </div>
    </div>
</div>