blob: 6fbf71185c4ffa56308175c31b9c3b1ae6fa1553 (
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
|
<form method="post" class="default">
<?= CSRFProtection::tokenTag() ?>
<table class="default">
<caption>
<?= _('Verwaltung von Zusatzangaben') ?>
</caption>
<colgroup>
<col width="45%">
<col width="45%">
<col width="10%">
</colgroup>
<thead>
<tr>
<th><?= _('Name') ?></th>
<th><?= _('Beschreibung') ?></th>
<th><?= _('Aktionen') ?></th>
</tr>
</thead>
<tbody>
<? if (!empty($allrules)): ?>
<? foreach ($allrules as $index => $rule) : ?>
<tr>
<td>
<?= htmlReady($rule['name']) ?>
</td>
<td>
<?= htmlReady($rule['description']) ?>
</td>
<td class="actions">
<a href="<?=$controller->url_for('admin/specification/edit/'.$rule['lock_id']) ?>" style="vertical-align: bottom">
<?= Icon::create('edit', 'clickable', ['title' => _('Regel bearbeiten')])->asImg() ?>
</a>
<?=Icon::create('trash', 'clickable', tooltip2(_('Regel löschen')))->asInput([
'formaction' => $controller->url_for('admin/specification/delete/' . $rule['lock_id']),
'data-confirm' => sprintf(_('Wollen Sie die Regel "%s" wirklich löschen?'), htmlReady($rule['name'])),
'style' => 'vertical-align: bottom'
])?>
</td>
</tr>
<? endforeach ?>
<? else : ?>
<tr>
<td colspan="3" style="text-align: center">
<?= _('Es wurden noch keine Zusatzangaben definiert.') ?>
</td>
</tr>
<? endif ?>
</tbody>
</table>
</form>
<?
$sidebar = Sidebar::Get();
$actions = new ActionsWidget();
$actions->addLink(_('Neue Regel anlegen'), $controller->url_for('admin/specification/edit'), Icon::create('add', 'clickable'));
$sidebar->addWidget($actions);
|