Commit e0cdde56 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix : Filtre sur les statuts depuis l'interface d'administration

parent 0dabbb08
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -4,16 +4,17 @@
        <section class="col-md-9">
            <?php foreach ($status as $code=>$info): ?>
            <article class="card card-state <?= $info['disabled'] ? 'card-disabled' : '' ?> <?= $info['use'] > 0 ? 'card-used' : '' ?>">
                <h3 class="">
                    <span>[<?= $code ?>]</span>
                <h3 class="card-title">
                    <code>[<?= $code ?>]</code>
                    <strong><?= $info['label'] ?></strong>
                    <small>
                    <a href="<?= $this->url('contract/search-global') ?>?&f[]=as;<?= $code ?>;;"
                            class="cartouche <?= $info['use'] > 0 ? 'primary' : '' ?>">
                        <?= $info['use'] . ' utilisation(s)' ?>
                    </small>
                    </a>
                    <nav>
                        <?php if($info['disablable'] === true): ?>
                        <form action="" method="post" class="form-inline">
                            <button class="btn btn-xs btn-primary" name="status" value="<?= $code ?>">
                            <button class="btn btn-sm <?= $info['disabled'] ? 'btn-success':'btn-danger'  ?>" name="status" value="<?= $code ?>">
                                <?php if($info['disabled']):?>
                                Activer
                                <?php else: ?>