aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/role/index.php
blob: 54b25d837f0177d841801e4ca3906d723de84872 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
 * @var Admin_RoleController $controller
 * @var Role[] $roles
 * @var array $stats
 */
?>
<table class="default">
    <caption>
        <?= _('Vorhandene Rollen') ?>
    </caption>
    <colgroup>
        <col width="65%">
        <col width="10%">
        <col width="10%">
        <col width="10%">
        <col width="5%">
    </colgroup>
    <thead>
        <tr>
            <th ><?= _('Name') ?></th>
            <th style="text-align: right;">
                <abbr title="<?= _('Direkte Zuweisung') ?>">
                    <?= _('Benutzer explizit') ?>
                </abbr>
            </th>
            <th style="text-align: right;">
                <abbr title="<?= _('Indirekte Zuweisung durch Berechtigungsstufe') ?>">
                    <?= _('Benutzer implizit') ?>
                </abbr>
            </th>
            <th style="text-align: right;"><?= _('Plugins') ?></th>
            <th></th>
        </tr>
        <tr>
            
        </tr>
    </thead>
    <tbody>
    <? foreach ($roles as $role): ?>
        <? $role_id = $role->getRoleid() ?>
        <tr>
            <td>
                <a href="<?= $controller->link_for("admin/role/show_role/{$role_id}") ?>">
                    <?= htmlReady($role->getRolename()) ?>
                <? if ($role->getSystemtype()): ?>
                    [<?= _('Systemrolle') ?>]
                <? endif ?>
                </a>
            </td>
            <td style="text-align: right;">
                <?= $stats[$role_id]['explicit'] ?>
            </td>
            <td style="text-align: right;">
                <?= $stats[$role_id]['implicit'] ?>
            </td>
            <td style="text-align: right;">
                <?= $stats[$role_id]['plugins'] ?>
            </td>
            <td class="actions">
            <? if (!$role->getSystemtype()): ?>
                <a href="<?= $controller->link_for('admin/role/ask_remove_role', $role_id) ?>">
                    <?= Icon::create('trash')->asSvg(tooltip2(_('Rolle löschen'))) ?>
                </a>
            <? endif ?>
            </td>
        </tr>
    <? endforeach ?>
    </tbody>
</table>