blob: ef3fa1bbe926f7d4f5f4c229a4760e8713fa70e2 (
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
|
<?php
/**
* @var Admission_RuleadministrationController $controller
* @var AdmissionRule[] $ruleTypes
*/
?>
<? if ($ruleTypes) : ?>
<table class="default" id="admissionrules">
<caption><?= _('Installierte Anmelderegeln:') ?></caption>
<thead>
<tr>
<th><?= _('aktiv?') ?></th>
<th><?= _('Art der Anmelderegel') ?></th>
</tr>
</thead>
<tbody>
<? foreach ($ruleTypes as $type => $details): ?>
<tr id="ruletype_<?= htmlReady($type) ?>">
<td>
<a href="<?= $controller->toggle_activation($type) ?>" role="button">
<? if ($details['active']): ?>
<?= Icon::create('checkbox-checked')->asImg([
'title' => sprintf(
_('Die Regel "%s" ist aktiv. Klicken Sie hier, um sie zu deaktivieren.'),
$details['name']
)
]) ?>
<? else: ?>
<?= Icon::create('checkbox-unchecked')->asImg([
'title' => sprintf(
_('Die Regel "%s" ist inaktiv. Klicken Sie hier, um sie zu aktivieren.'),
$details['name']
)
]) ?>
<? endif; ?>
</a>
</td>
<td>
<strong><?= htmlReady($details['name']) ?></strong> (<?= htmlReady($type) ?>)
<br>
<?= htmlReady($details['description']) ?>
</td>
</tr>
<? endforeach; ?>
</tbody>
</table>
<? else : ?>
<?= MessageBox::info(_('Sie haben noch keine Anmelderegeln installiert!'))->hideClose(); ?>
<? endif ?>
|