aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/api/config.php
blob: 426db12cddee3cc1865a348f480a3525aafa5228 (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
<? use Studip\Button, Studip\LinkButton; ?>

<form class="default" action="<?= $controller->url_for('admin/api/config') ?>" method="post">
    <fieldset>
        <legend><?= _('Konfiguration') ?></legend>

        <input type="hidden" name="active" value="0">
        <label>
            <input type="checkbox" name="active" value="1" <? if ($config['API_ENABLED']) echo 'checked'; ?>>
            <?= _('REST-API aktiviert') ?>
        </label>
        
        
        <label class="caption" for="auth">
            <?= _('Standard-Authentifizierung beim Login') ?>
            <select name="auth" id="auth">
            <? foreach ($GLOBALS['STUDIP_AUTH_PLUGIN'] as $plugin): ?>
                <option <? if ($config['API_OAUTH_AUTH_PLUGIN'] === $plugin) echo 'selected'; ?>>
                    <?= $plugin ?>
                </option>
            <? endforeach; ?>
            </select>
        </label>
    </fieldset>
    <footer>
        <?= Button::createAccept(_('Speichern')) ?>
        <?= LinkButton::createCancel(_('Abbrechen'), $controller->url_for('admin/api')) ?>
    </footer>
</form>