aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/user/_waiting_list.php
blob: 392c751e7562834a19eae075065c2f1df00fffd7 (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
<section class="contentbox">
    <header>
        <h1>
            <a href="<?= ContentBoxHelper::href('seminar_wait') ?>">
                <?= _('Übersicht Wartelisten von Veranstaltungen') ?>
            </a>
        </h1>
    </header>
    <? if (!empty($memberships)) : ?>
        <section>
            <table class="default">
                <colgroup>
                    <col style="width: 200px">
                    <col>
                    <col style="width: 15%">
                    <col style="width: 15%">
                </colgroup>
                <thead>
                    <tr>
                        <th><?= _('Veranstaltungsnummer') ?></th>
                        <th><?= _('Veranstaltung') ?></th>
                        <th><?= _('Status') ?></th>
                        <th style="text-align: center"><?= _('Position') ?></th>
                    </tr>
                </thead>
                <tbody>
                    <? foreach ($memberships as $membership): ?>
                        <tr>
                            <td>
                                <a href="<?= URLHelper::getLink('seminar_main.php', ['auswahl' => $membership->course->id]) ?>">
                                    <?= htmlReady($membership->course->veranstaltungsnummer) ?>
                                </a>
                            </td>
                            <td>
                                <a href="<?= URLHelper::getLink('seminar_main.php', ['auswahl' => $membership->course->id]) ?>">
                                    <?= sprintf('%s (%s)', htmlReady($membership->course->getFullName('type-name')), htmlReady($membership->course->getFullName('sem-duration-name'))) ?>
                                </a>
                            </td>
                            <td><?= htmlReady($membership->status) ?></td>
                            <td style="text-align: center"><?= htmlReady($membership->position) ?></td>
                        </tr>
                    <? endforeach; ?>
                </tbody>
            </table>
        </section>
    <? else : ?>
        <?= $this->render_partial('admin/user/_activities_no_courses.php') ?>
    <? endif ?>
</section>