aboutsummaryrefslogtreecommitdiff
path: root/app/views/search/studiengaenge/mehrfach.php
blob: 29311e36d01e95666f118bb4e5a5cc09537ccbc3 (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
<?= $this->render_partial('search/breadcrumb') ?>
<table class="default nohover">
    <caption>
        <?= _('Studiengang') ?>: <?= htmlReady($studiengang->getDisplayName()) ?>
        <? if (Config::get()->ENABLE_STUDYCOURSE_INFO_PAGE) : ?>
            <a href="<?= $controller->link_for('search/studiengaenge/info', $studiengang->id)?>" data-dialog>
                <?= Icon::create('infopage2')->asSvg(['title' => _('Informationen zum Studiengang')]) ?>
            </a>
        <? endif; ?>
    </caption>
    <thead>
        <tr>
            <th><?= _('Fächer') ?></th>
        <? foreach ($studiengangTeilBezeichnungen as $teil_bezeichnung): ?>
            <th style="text-align: center;"><?= htmlReady($teil_bezeichnung->getDisplayName()) ?></th>
        <? endforeach; ?>
        </tr>
    </thead>
    <tbody>
    <? foreach ($data as $fach_id => $fach): ?>
        <tr>
            <td>
                <?= htmlReady($fachNamen[$fach_id]) ?>
            </td>
        <? foreach ($studiengangTeilBezeichnungen as $teil_bezeichnung): ?>
            <td style="text-align: center;">
            <? if (isset($fach[$teil_bezeichnung->id])) : ?>
                <a href="<?= $controller->link_for($verlauf_url, $fach[$teil_bezeichnung->id], $teil_bezeichnung->id, $studiengang_id ?? null) ?>">
                    <?= Icon::create('info-circle-full')->asSvg(['title' => _('Studienverlaufsplan anzeigen')]) ?>
                </a>
            <? endif; ?>
            </td>
        <? endforeach; ?>
        </tr>
    <? endforeach; ?>
    </tbody>
</table>