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

Cosmétique

parent af8c748d
Loading
Loading
Loading
Loading
Loading
+28 −27
Original line number Diff line number Diff line
@@ -30,49 +30,49 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);
    <thead>
    <tr>
        <th>
            <a href="<?php echo $s = $this->sortable('userId'); ?>"
            <span href="<?php echo $s = $this->sortable('userId'); ?>"
               title="<?php echo $this->translate("Identifiant unique de l'utilisateur"); ?>">
                <?php echo $this->translate("Id utilisateur"); ?>
            </a> <?php echo $s->icon() ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>
            Identité utilisateur
        </th>
        <th>
            <a href="<?php echo $s = $this->sortable('action'); ?>"
            <span href="<?php echo $s = $this->sortable('action'); ?>"
               title="<?php echo $this->translate("Action autorisée"); ?>">
                <?php echo $this->translate("Action"); ?>
            </a> <?php echo $s->icon() ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>
            <a href="<?php echo $s = $this->sortable('actionsCount'); ?>"
            <span href="<?php echo $s = $this->sortable('actionsCount'); ?>"
               title="<?php echo $this->translate("Nombre d'utilisations"); ?>">
                <?php echo $this->translate("Utilisé"); ?>
            </a> <?php echo $s->icon() ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>
            <a href="<?php echo $s = $this->sortable('lastUsedOn'); ?>"
            <span href="<?php echo $s = $this->sortable('lastUsedOn'); ?>"
               title="<?php echo $this->translate("Date de dernière utilisation du jeton"); ?>">
                <?php echo $this->translate("Utilisé le"); ?>
            </a> <?php echo $s->icon() ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>
            <a href="<?php echo $s = $this->sortable('actionsMaxCount'); ?>"
            <span href="<?php echo $s = $this->sortable('actionsMaxCount'); ?>"
               title="<?php echo $this->translate("Nombre d'utilisations maximum autorisé"); ?>">
                <?php echo $this->translate("Nb utilisations max"); ?>
            </a> <?php echo $s->icon() ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>
            <a href="<?php echo $s = $this->sortable('createdOn'); ?>"
               title="<?php echo $this->translate("Date de création du jeton"); ?>">
                <?php echo $this->translate("Créé le"); ?>
            </a> <?php echo $s->icon() ?>
        </th>
        <th>
            <a href="<?php echo $s = $this->sortable('expiredOn'); ?>"
            <span href="<?php echo $s = $this->sortable('expiredOn'); ?>"
               title="<?php echo $this->translate("Date d'expiration du jeton"); ?>">
                <?php echo $this->translate("Expire le"); ?>
            </a> <?php echo $s->icon() ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>
            <span href="<?php echo $s = $this->sortable('createdOn'); ?>"
               title="<?php echo $this->translate("Date de création du jeton"); ?>">
                <?php echo $this->translate("Créé le"); ?>
            </span> <?php echo $s->icon() ?>
        </th>
        <th>

@@ -82,13 +82,14 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);

    <tbody>
    <?php foreach ($paginator as $userToken): ?>
        <tr>
        <?php
        $userTokenClass = $userToken->isExpired() || $userToken->isActionsMaxCountReached() ? 'text-danger' : null;
        $modifiable = $this->isAllowed($userToken, TokenPrivilege::MODIFIER);
        $supprimable = $this->isAllowed($userToken, TokenPrivilege::SUPPRIMER);
        $prolongeable = $this->isAllowed($userToken, TokenPrivilege::PROLONGER);
        $testable = $this->isAllowed($userToken, TokenPrivilege::TESTER);
        ?>
        <tr class="<?php echo $userTokenClass ?>">
            <td>
                <?php echo $userToken->getUserId() ?>
            </td>
@@ -108,10 +109,10 @@ $creable = $this->isAllowed(new UserToken(), TokenPrivilege::CREER);
                <?php echo $userToken->getActionsMaxCountToString() ?>
            </td>
            <td>
                <?php echo $userToken->getCreatedOnToString() ?>
                <?php echo $userToken->getExpiredOnToString() ?>
            </td>
            <td>
                <?php echo $userToken->getExpiredOnToString() ?>
                <?php echo $userToken->getCreatedOnToString() ?>
            </td>
            <td>
                <?php if ($modifiable): ?>