~fkooman/vpn-user-portal

ref: 57df62b9a04e9b2391ca809e5ff9d76e524eceb1 vpn-user-portal/views/vpnAdminUserList.php -rw-r--r-- 1.5 KiB
57df62b9François Kooman update CHANGES 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php $this->layout('base', ['activeItem' => 'users', 'pageTitle' => $this->t('Users')]); ?>
<?php $this->start('content'); ?>
    <?php if (empty($userList)): ?>
        <p class="plain">
            <?=$this->t('No user account(s) to show.'); ?>
        </p>
    <?php else: ?>
        <table class="tbl">
            <thead>
                <tr><th><?=$this->t('User ID'); ?></th><th></th></tr>
            </thead>
            <tbody>
                <?php foreach ($userList as $user): ?>
                    <tr>
                        <td><a href="<?=$this->e($requestRoot); ?>user?user_id=<?=$this->e($user['user_id'], 'rawurlencode'); ?>" title="<?=$this->e($user['user_id']); ?>"><?=$this->etr($user['user_id'], 50); ?></a></td>
                        <td class="text-right">
                            <?php if ($user['has_totp_secret']): ?>
                                <span class="plain"><?=$this->t('TOTP'); ?></span>
                            <?php endif; ?>
                            <?php if ($user['is_disabled']): ?>
                                <span class="error"><?=$this->t('Disabled'); ?></span>
                            <?php else: ?>
                                <span class="success"><?=$this->t('Active'); ?></span>
                            <?php endif; ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    <?php endif; ?>
<?php $this->stop('content'); ?>