aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/grouping/children.php
blob: 31accc611b2ed13fa53327920478c46ded81d119 (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
<form class="default" method="post" action="<?= $controller->url_for('course/grouping/assign_child') ?>">
    <?= CSRFProtection::tokenTag() ?>
    <fieldset>
        <legend>
            <?= _('Bereits zugeordnet') ?>
        </legend>
        <section>
            <? if (count($children) > 0) : ?>
                <ul>
                    <? foreach ($children as $child) : ?>
                        <li>
                            <a href="<?= $controller->url_for('course/management', ['cid' => $child->id]) ?>">
                                <?= htmlReady($child->getFullName()) ?>
                            </a>
                            <a href="<?= $controller->url_for('course/grouping/unassign_child', $child->id) ?>"
                               data-confirm="<?= _('Wollen Sie die Zuordnung dieser Unterveranstaltung wirklich entfernen?') ?>">
                                <?= Icon::create('trash') ?>
                            </a>
                        </li>
                    <? endforeach ?>
                </ul>
            <? else: ?>
                <p>
                    <?= _('Diese Veranstaltung hat keine Unterveranstaltungen.') ?>
                </p>
            <? endif ?>
        </section>
    </fieldset>
    <fieldset>
        <legend>
            <?= _('Unterveranstaltung hinzufügen') ?>
        </legend>
        <section>
            <?= $search->render() ?>
        </section>
    </fieldset>
    <footer>
        <?= Studip\Button::createAccept(_('Unterveranstaltung zuordnen'), 'assign') ?>
    </footer>
</form>