Commit b887d076 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Partial du bouton de création de jeton : possibilité de spécifier une route alternative

parent 3e259d19
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
<?php
/**
 * @var string|null $redirect
 * @var string|null $route
 * @var \UnicaenAuth\Entity\Db\UserInterface|int|null $user
 * @var \Application\View\Renderer\PhpRenderer $this
 */
@@ -24,7 +25,7 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);
        'redirect' => $redirect ?: 'unicaen-auth-token/token',
    ];
    ?>
    <a href="<?php echo $this->url('unicaen-auth-token/token/creer', $options, ['query' => $queryParams]) ?>"
    <a href="<?php echo $this->url($route ?: 'unicaen-auth-token/token/creer', $options, ['query' => $queryParams]) ?>"
       class="btn btn-primary" title="Créer un nouveau jeton utilisateur">Nouveau jeton utilisateur</span></a>
</p>
<?php endif ?>