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

WIP bootstrap 3 => 4

parent e8b733e3
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -26,13 +26,13 @@ $this->headTitle($this->translate($isCreation ? "Création jeton " : "Modificati

    <div class="row">
        <?php if ($form->isUserIdEditable()): ?>
            <div class="col-xs-2">
            <div class="col-2">
                <?php echo $this->formControlGroup($form->get('userId')) ?>
            </div>
        <?php else: ?>
            <?php echo $this->formHidden($form->get('userId')) ?>
        <?php endif ?>
        <div class="col-xs-3">
        <div class="col-3">
            <?php echo $this->formControlGroup((new Text('user'))
                ->setLabel("Identité de l'utilisateur")
                ->setValue($userToken->getUserToString())
@@ -42,11 +42,11 @@ $this->headTitle($this->translate($isCreation ? "Création jeton " : "Modificati

    <div class="row">
        <?php if ($isCreation): ?>
            <div class="col-xs-2">
            <div class="col-2">
                <?php echo $this->formControlGroup($form->get('duration')) ?>
            </div>
        <?php else: ?>
            <div class="col-xs-3 confidentDateFin">
            <div class="col-3 confidentDateFin">
                <?php echo $this->formControlGroup($form->get('expiredOn'), 'formDate') ?>
            </div>
        <?php endif ?>
+0 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);
?>

<?php if ($creable): ?>
<p class="pull-right">
    <?php
    $options = array_filter([
        'user' => $user ?: null,
@@ -27,5 +26,4 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);
    ?>
    <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 ?>
+8 −8
Original line number Diff line number Diff line
@@ -71,9 +71,9 @@ use UnicaenAuthToken\Privilege\TokenPrivilege;
                <?php if ($prolongeable): ?>
                    <p>
                        <a href="<?php echo $this->url('unicaen-auth-token/token/prolonger', ['userToken' => $userToken->getId()], ['query' => ['redirect' => $redirect]]) ?>"
                           class="btn btn-default btn-xs"
                           class="btn btn-secondary btn-sm"
                           title="Prolonger ce jeton utilisateur de <?php echo $userToken->getDefaultProlongationSpecToString() ?> ?"
                           data-toggle="confirmation">Prolonger</span></a>
                           data-bs-toggle="confirmation">Prolonger</span></a>
                    </p>
                <?php endif ?>
            </td>
@@ -90,9 +90,9 @@ use UnicaenAuthToken\Privilege\TokenPrivilege;
                <?php if ($envoyable): ?>
                    <p>
                        <a href="<?php echo $this->url('unicaen-auth-token/token/envoyer', ['userToken' => $userToken->getId()], ['query' => ['redirect' => $redirect]]) ?>"
                           class="btn btn-default btn-xs"
                           class="btn btn-secondary btn-sm"
                           title="Envoyer <?php echo $userToken->getSentOn() ? 'à nouveau' : '' ?> ce jeton à <?php echo $emailUtilisateur ?> ?"
                           data-toggle="confirmation">Envoyer <?php echo $userToken->getSentOn() ? 'à nouveau' : '' ?></span></a>
                           data-bs-toggle="confirmation">Envoyer <?php echo $userToken->getSentOn() ? 'à nouveau' : '' ?></span></a>
                    </p>
                <?php endif ?>
            </td>
@@ -102,14 +102,14 @@ use UnicaenAuthToken\Privilege\TokenPrivilege;
            <td>
                <?php if ($modifiable): ?>
                    <a href="<?php echo $this->url('unicaen-auth-token/token/modifier', ['userToken' => $userToken->getId()], ['query' => ['redirect' => $redirect]]) ?>"
                       class="btn btn-default btn-xs"
                       title="Modifier ce jeton utilisateur ?"><span class="glyphicon glyphicon-pencil"></span></a>
                       class="btn btn-secondary btn-sm"
                       title="Modifier ce jeton utilisateur ?"><span class="icon icon-modifier"></span></a>
                <?php endif ?>
                <?php if ($supprimable): ?>
                    <a href="<?php echo $this->url('unicaen-auth-token/token/supprimer', ['userToken' => $userToken->getId()], ['query' => ['redirect' => $redirect]]) ?>"
                       class="btn btn-default btn-xs"
                       class="btn btn-secondary btn-sm"
                       title="Supprimer ce jeton utilisateur ?"
                       data-toggle="confirmation"><span class="glyphicon glyphicon-trash text-danger"></span></a>
                       data-bs-toggle="confirmation"><span class="icon icon-detruire text-danger"></span></a>
                <?php endif ?>
            </td>
        </tr>