aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/category/show_resources.php
blob: 51cc433b9a677b202c4a05d7cc97f94098fd4cbc (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
<? if ($resources): ?>
<table class="default">
    <thead>
        <tr>
            <th><?= _('Name') ?></th>
            <th><?= _('Beschreibung') ?></th>
            <th><?= _('Eigenschaften') ?></th>
        </tr>
    </thead>
    <tbody>
        <? foreach ($resources as $resource): ?>
        <tr>
            <td>
                <a href="<?= $resource->getActionLink('show') ?>">
                    <?= htmlReady($resource->name) ?>
                </a>
            </td>
            <td><?= htmlReady($resource->description) ?></td>
            <td>
                <? if ($resource->properties): ?>
                <ul>
                    <? foreach ($resource->properties as $property): ?>
                        <? if ($property->definition): ?>
                            <li><?= htmlReady($property->getFullName()) ?></li>
                        <? endif ?>
                    <? endforeach ?>
                </ul>
                <? endif ?>
            </td>
        </tr>
        <? endforeach ?>
    </tbody>
</table>
<? else: ?>
<?= MessageBox::info(_('Es gibt keine Ressourcen in der gewählten Ressourcenkategorie!')) ?>
<? endif ?>