Commit 932a34d3 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix accueil

L'accès à la validation ne propose plus que la version 2
parent a06c1412
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -95,9 +95,7 @@ use function Oscar\_ot; ?>
                                   </a>
                                <?php endif; ?>

                                <?php if( $this->grant()->getCurrentPerson()
                                    && $this->grant()->isDeclarer()): ?>

                                <?php if( $this->grant()->getCurrentPerson() && $this->grant()->isDeclarer()): ?>
                                    <a class="btn btn-primary" href="<?= $this->url('timesheet/declarant') ?>">
                                        <i class="icon-pencil"></i>
                                        <?= $this->oscarText('Déclarer des heures') ?>
@@ -133,14 +131,7 @@ use function Oscar\_ot; ?>
                                           class="btn <?= count($validations) > 0 ? 'btn-primary' : 'btn-default' ?>">
                                            <i class="icon-edit"></i>
                                            <?= $this->oscarText("Validation des feuilles de temps") ?></a>
                                        <button type="button" class="btn <?= count($validations) > 0 ? 'btn-primary' : 'btn-default' ?> dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                            <span class="caret"></span>
                                            <span class="sr-only">Toggle Dropdown</span>
                                        </button>
                                        <ul class="dropdown-menu">
                                            <li><a href="<?= $this->url('timesheet/validations2') ?>">Validations v2</a></li>
                                            <li><a href="<?= $this->url('timesheet/validations') ?>">Validations (ancienne version)</a></li>
                                        </ul>
                                    
                                    </div>

                                <?php endif; ?>