aboutsummaryrefslogtreecommitdiff
path: root/app/views/institute/members/index.php
blob: 4c1678b2eb6becfba50c593329a85fdf17bda86f (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
<? if ($institute): ?>
    <table class="default" id="list_institute_members">
        <caption><?= _('Mitarbeiterinnen und Mitarbeiter') ?></caption>
        <colgroup>
            <col style="width: 32px">
        <? foreach ($structure as $key => $field): ?>
            <? if ($key !== 'statusgruppe'): ?>
                <col <? if (!empty($field['width'])): ?> style="width: <?= htmlReady($field['width']) ?>px"<? endif ?>>
            <? endif; ?>
        <? endforeach; ?>
        </colgroup>
        <thead>
            <tr>
            <? foreach ($structure as $key => $field): ?>
                <th <? if ($key === 'actions') echo 'class="actions"'; ?> <? if (!empty($field['colspan'])): ?>colspan="<?= $field['colspan'] ?>"<? endif; ?>>
                <? if (!empty($field['link'])): ?>
                    <a href="<?= URLHelper::getLink($field['link']) ?>">
                        <?= htmlReady($field['name']) ?>
                    </a>
                <? else: ?>
                    <?= htmlReady($field['name']) ?>
                <? endif; ?>
                </th>
            <? endforeach; ?>
            </tr>
        </thead>
    <? foreach ($display_tables as $variables): ?>
        <?= $this->render_partial('institute/members/_table_body', $variables) ?>
    <? endforeach; ?>
    </table>
<? endif; ?>