aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/room_planning/courses.php
blob: 2da6f9c5957647e45ce62e388d58697694efa39c (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
<table class="default">
    <thead>
        <tr>
            <th><?= _('Veranstaltungen in diesem Raum') ?></th>
        </tr>
    </thead>
    <tbody>
    <? foreach ($courses as $course): ?>
        <tr>
            <td>
                <a href="<?= URLHelper::getURL('dispatch.php/course/dates/current_day_dates', [
                    'cid' => $course['Seminar_id'],
                    'resource_id' => $resourceId
                ]) ?>">
                    <?= htmlReady($course['Name']) ?>
                </a>
            </td>
        </tr>
    <? endforeach; ?>
    <? if (count($courses) === 0) : ?>
        <tr>
            <td>
                <?= _('Es sind noch keine Veranstaltungen vorhanden.') ?>
            </td>
        </tr>
    <? endif ?>
    </tbody>
</table>