blob: 6a6c82de5c4c22666fea9c00804bf2f3b3572163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<? foreach ($tree[$node] as $current) : ?>
<li>
<? if ($current['class'] != 'Modulteil' && $current['id'] != 'root') : ?>
<input id="<?= htmlReady($current['id'] . $id_sfx->c) ?>" type="checkbox"<?= $current['class'] != 'StgteilabschnittModul' ? 'checked' : ''?>>
<? endif; ?>
<label for="<?= htmlReady($current['id'] . $id_sfx->c++) ?>"></label>
<? if ($current['class'] == 'StgteilabschnittModul') : ?>
<a data-dialog title="<?= htmlReady($current['name']) ?>" href="<?= URLHelper::getLink('dispatch.php/shared/modul/overview/' . $current['id'] . '/' . $course->start_semester->id) ?>">
<?= htmlReady($current['name']) ?>
</a>
<a data-dialog="size=auto" title="<?= htmlReady($current['name']) ?>" href="<?= URLHelper::getLink('dispatch.php/shared/modul/description/' . $current['id']) ?>">
<?= Icon::create('log', 'clickable', ['title' => _('Modulbeschreibung')]); ?>
</a>
<? else : ?>
<?= htmlReady($current['name']) ?>
<? endif; ?>
<? if ($current['class'] != 'Modulteil') : ?>
<ul>
<?= $this->render_partial('shared/mvv_tree.php', ['tree' => $tree, 'node' => $current['id']]) ?>
</ul>
<? endif; ?>
</li>
<? endforeach; ?>
|