blob: fcb035334080cb01b687a86c0f78af0b851c50c5 (
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
|
<?php
/**
* @var Admin_RoleController $controller
* @var Role[] $roles
* @var array $stats
*/
?>
<table class="default">
<caption>
<?= _('Vorhandene Rollen') ?>
</caption>
<thead>
<tr>
<th rowspan="2"><?= _('Name') ?></th>
<th colspan="2" style="text-align: right;">
<?= _('Benutzer') ?>
</th>
<th style="text-align: right;" rowspan="2"><?= _('Plugins') ?></th>
<th rowspan="2"></th>
</tr>
<tr>
<th style="text-align: right;">
<abbr title="<?= _('Direkte Zuweisung') ?>">
<?= _('explizit') ?>
</abbr>
</th>
<th style="text-align: right;">
<abbr title="<?= _('Indirekte Zuweisung durch Berechtigungsstufe') ?>">
<?= _('implizit') ?>
</abbr>
</th>
</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')->asImg(tooltip2(_('Rolle löschen'))) ?>
</a>
<? endif ?>
</td>
</tr>
<? endforeach ?>
</tbody>
</table>
|