Skip to content
Snippets Groups Projects
Commit 4a738cdd authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

WIP bootstrap 3 => 4

parent e8b733e3
No related branches found
No related tags found
No related merge requests found
Pipeline #10543 passed
......@@ -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 ?>
......
......@@ -16,7 +16,7 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);
?>
<?php if ($creable): ?>
<p class="pull-right">
<p class="float-right">
<?php
$options = array_filter([
'user' => $user ?: null,
......
......@@ -71,7 +71,7 @@ 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>
</p>
......@@ -90,7 +90,7 @@ 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>
</p>
......@@ -102,12 +102,12 @@ 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"
class="btn btn-secondary btn-sm"
title="Modifier ce jeton utilisateur ?"><span class="glyphicon glyphicon-pencil"></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>
<?php endif ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment