Commit 7a32fd3c authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Retour

parent 0195cb43
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ return [
                        'options' => [
                            'route'    => '/formulaires',
                            'defaults' => [
                                /** @see FormulaireController::indexAction() */
                                'controller' => FormulaireController::class,
                                'action'     => 'index',
                            ],
+12 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ usort($categories, function (Categorie $a, Categorie $b) { return ($a->getOrdre(


$canModifierDescription     = $this->isAllowed(AutoformformulairePrivileges::getResourceId(AutoformformulairePrivileges::FORMULAIRE_MODIFIER));
$canCanIndexFormulaire      = $this->isAllowed(AutoformformulairePrivileges::getResourceId(AutoformformulairePrivileges::FORMULAIRE_INDEX));

$canAjouterCategorie        = $this->isAllowed(AutoformcategoriePrivileges::getResourceId(AutoformcategoriePrivileges::CATEGORIEF_AJOUTER));
$canModifierCategorie       = $this->isAllowed(AutoformcategoriePrivileges::getResourceId(AutoformcategoriePrivileges::CATEGORIEF_MODIFIER));
@@ -43,10 +44,20 @@ $canDetruireChamp = $this->isAllowed(AutoformchampPrivileges::getResou
           class="btn btn-primary ajax-modal"
           data-event="modification"
        >
            <span class="editer"></span>
            <span class="icon icon-editer"></span>
            Modifier description
        </a>
    <?php endif; ?>
    <?php if ($canCanIndexFormulaire) : ?>
        <a
                <?php /** @see \UnicaenAutoform\Controller\FormulaireController::indexAction() */ ?>
                href="<?php echo $this->url('autoform/formulaires', [], [], true); ?>"
                class="btn btn-secondary"
        >
            <span class="icon icon-listing"></span>
            Retourner à l'index des formulaires
        </a>
    <?php endif; ?>

    <dl>
        <dt> Libellé </dt>