blob: 072817b5e16ec42b6666d8ba89a732204437b28d (
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
|
<? if ($properties): ?>
<table class="default sortable-table" id="Resources_PropertyTable"
data-sortlist="[[0, 0]]">
<thead>
<tr>
<th data-sort="text"><?= _('Name') ?></th>
<th data-sort="text"><?= _('Angezeigter Name') ?></th>
<th data-sort="text"><?= _('Typ') ?></th>
<th><?= _('Minimale Rechtestufe für Änderungen') ?></th>
<th><?= _('Mögliches Suchkriterium') ?></th>
<th><?= _('Verwendung in Kategorien') ?></th>
<th class="actions"><?= _('Aktionen') ?></th>
</tr>
</thead>
<tbody>
<? foreach ($properties as $property): ?>
<tr>
<td><?= htmlReady($property->name) ?></td>
<td>
<?= htmlReady(
trim($property->display_name)
? $property->display_name
: $property->name
) ?>
</td>
<td><?= htmlReady($property->type) ?></td>
<td><?= htmlReady($property->write_permission_level) ?></td>
<td><?= $property->searchable ? _('ja') : _('nein') ?></td>
<td>
<? if (is_array($categories[$property->id])): ?>
<?= htmlReady(implode(', ', $categories[$property->id])) ?>
<? endif ?>
</td>
<td class="actions">
<form method="post" class="default"
action="<?= $controller->url_for('resources/property/delete/' . $property->id)?>">
<?= CSRFProtection::tokenTag() ?>
<a href="<?=$controller->url_for('resources/property/edit/' . $property->id)?>"
data-dialog="size=auto">
<?= Icon::create('edit')->asImg(
[
'title' => _('Bearbeiten')
]
) ?>
</a>
<? if (!$property->system): ?>
<?= Icon::create('trash')->asInput(
[
'title' => _('Löschen'),
'data-confirm' => sprintf(
_('Soll die Eigenschaft "%s" wirklich gelöscht werden?'),
$property->name
)
]
) ?>
<? endif ?>
</form>
</td>
</tr>
<? endforeach ?>
</tbody>
</table>
<? else: ?>
<?= MessageBox::info(
_('Es sind keine Eigenschaften definiert!')
) ?>
<? endif ?>
|