aboutsummaryrefslogtreecommitdiff
path: root/app/views/lti/content_item.php
blob: 52841050d2190a9d1fa145572f4f961176c0db21 (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
<form class="default" action="<?= $controller->link_for('lti/link_content_item') ?>" method="POST">
    <?= CSRFProtection::tokenTag() ?>

    <fieldset>
        <legend>
            <?= _('Veranstaltung auswählen') ?>
        </legend>

        <label>
            <?= _('Veranstaltung') ?>

            <select name="course_id" class="nested-select">
                <? foreach ($courses as $course): ?>
                    <option value="<?= $course->id ?>">
                        <?= htmlReady($course->getFullName('number-name-semester')) ?>
                    </option>
                <? endforeach ?>
            </select>
        </label>

        <label>
            <?= _('Art der Anzeige') ?>

            <select name="target">
                <? foreach (explode(',', $document_targets) as $target): ?>
                    <option value="<?= htmlReady($target) ?>" <?= $target === 'window' ? 'selected' : '' ?>>
                        <?= htmlReady($target_labels[$target] ?? $target) ?>
                    </option>
                <? endforeach ?>
            </select>
        </label>
    </fieldset>

    <footer>
        <?= Studip\Button::createAccept(_('Verknüpfen'), 'link') ?>
        <?= Studip\Button::createCancel(_('Abbrechen'), 'abort') ?>
    </footer>
</form>