aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/extern/extern_config/persbrowse.php
blob: ec050f7d40696ca8d7a185fc7d6fd8a174143d6a (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
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
 * @var Admin_ExternController $controller
 * @var ExternPagePersBrowse $page
 * @var ExternPageConfig $config
 */
?>

<span class="content-title">
    <?= _('Konfiguration für die Ausgabe von Veranstaltungen') ?>
</span>

<form method="post" action="<?= $controller->store('PersBrowse', $config->id) ?>" class="default collapsable">
    <?= CSRFProtection::tokenTag() ?>
    <?= $this->render_partial('institute/extern/extern_config/_basic_settings') ?>

    <fieldset>
        <legend>
            <?= _('Angaben zum Inhalt') ?>
        </legend>
        <label>
            <?= _('Rechtestufe in Einrichtungen') ?>
            <select name="instperms[]" class="nested-select" multiple>
                <? foreach ($page->getInstitutePermissionOptions() as $instperm_id => $instperm_name) : ?>
                    <option
                        value="<?= $instperm_id ?>"
                        <?= in_array($instperm_id, $page->instperms ?? []) ? ' selected' : '' ?>>
                        <?= htmlReady($instperm_name) ?>
                    </option>
                <? endforeach ?>
            </select>
        </label>
        <label>
            <input type="checkbox" name="onlylecturers" value="1"
                <?= $page->onlylecturers ? 'checked' : '' ?>>
            <?= _('Nur Lehrende anzeigen.') ?>
        </label>
        <?= $this->render_partial('institute/extern/extern_config/_institutes_selector') ?>
    </fieldset>

    <?= $this->render_partial('institute/extern/extern_config/_template') ?>

    <footer data-dialog-button>
        <?= Studip\Button::createAccept(_('Speichern')) ?>
        <?= Studip\Button::createAccept(_('Speichern und zurück'), 'store_cancel') ?>
        <?= Studip\LinkButton::createCancel(
            _('Abbrechen'), $controller->url_for('institute/extern/index')
        ) ?>
    </footer>

</form>