Commit 68b48db9 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Les boutons lié aux demandes d'activités ont été replacé/renommé de façon plus clair

parent 4c9a796f
Loading
Loading
Loading
Loading
+12 −3
Changes for module/Oscar/view/oscar/public/index.phtml: 12 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ use Oscar\OscarText;
use function Oscar\_ot;

?>

<?php
$cols = 2;
// -------------------------------------------------- ACCUEIL CUSTOM
@@ -25,7 +24,6 @@ if (file_exists(__DIR__ . '/../../../../../data/home.html')):
    </section>
<?php $sectionTodo = ob_get_clean(); endif; ?>


<div class="container-fluid homepage">
    <section class="row">

@@ -63,6 +61,7 @@ if (file_exists(__DIR__ . '/../../../../../data/home.html')):
                                <?= $this->oscarText('Activités dans vos structures') ?></a>
                            </a>
                        <?php endif; ?>

                        <?php if ($this->grant()->getCurrentPerson() && $this->grant()->isDeclarer()): ?>
                            <a class="btn btn-primary" href="<?= $this->url('timesheet/declarant') ?>">
                                <i class="icon-pencil"></i>
@@ -73,6 +72,7 @@ if (file_exists(__DIR__ . '/../../../../../data/home.html')):
                                <?= $this->oscarText('Historique de mes feuilles de temps') ?>
                            </a>
                        <?php endif; ?>

                        <?php if (count($periodsRejected)): ?>
                            <div class="alert alert-danger">
                                <i class="icon-warning-empty"></i> Problème pour la/les déclaration(s) :
@@ -91,6 +91,7 @@ if (file_exists(__DIR__ . '/../../../../../data/home.html')):
                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

                        <?php if ($isValidator): ?>
                            <div class="btn-group">
                                <a type="button" href="<?= $this->url('timesheet/validations2') ?>"
@@ -100,17 +101,25 @@ if (file_exists(__DIR__ . '/../../../../../data/home.html')):

                            </div>
                        <?php endif; ?>

                        <?php if ($documentsWait): ?>
                            <a href="<?= $this->url('unicaen-signature/my-documents') ?>" class="btn btn-primary">
                                Documents à viser
                                <span class="label label-danger"><?= count($documentsWait) ?></span>
                            </a>
                        <?php endif; ?>

                        <?php if( $this->grant(\Oscar\Provider\Privileges::ACTIVITY_REQUEST) ):?>
                            <a href="<?= $this->url('requestactivity') ?>" class="btn btn-primary">
                                <?= $this->oscarText("Faire une demande d'activité") ?>
                            </a>
                        <?php endif; ?>

                        <?php if ($isRequestValidator): ?>
                            <a href="<?= $this->url('contract/requestadmin') ?>"
                               class="btn <?= $requestValidations > 0 ? 'btn-primary' : 'btn-default' ?>">
                                <i class="icon-cube"></i>
                                <?= $this->oscarText("Demande d'activité") ?>
                                <?= $this->oscarText("Valider les demandes d'activité") ?>
                                <?php if ($requestValidations > 0): ?>
                                    <sub class="bubble bubble-danger"><?= $requestValidations ?></sub>
                                <?php endif; ?>