aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/lti/select_tool.php
blob: b6163e0859adb3e2f9770f011fd1c2edd1fe5bd5 (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
<?php
/**
 * @var StudipController $controller
 * @var LtiTool[] $global_tools
 */
?>
<form class="default" method="post" action="<?= $controller->link_for('course/lti/select_tool_redirect') ?>"
      data-dialog>
    <?= CSRFProtection::tokenTag() ?>
    <fieldset>
        <legend><?= _('Auswahl des LTI-Tools') ?></legend>
        <label>
            <?= _('Bitte wählen Sie ein LTI-Tool aus.') ?>
            <select name="selected_tool_id">
                <? foreach ($global_tools as $tool) : ?>
                    <option value="<?= htmlReady($tool->id) ?>">
                        <?= htmlReady($tool->name) ?>
                    </option>
                <? endforeach ?>
                <? if (Config::get()->LTI_ALLOW_TOOL_CONFIG_IN_COURSE) : ?>
                    <option value="new">
                        <?= _('Neues LTI-Tool für die Veranstaltung einrichten.') ?>
                    </option>
                <? endif ?>
            </select>
        </label>
    </fieldset>
    <div data-dialog-button>
        <?= \Studip\Button::create(_('Weiter')) ?>
    </div>
</form>