aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/additional/index.php
blob: f61b7e0e0365327405403a92dbb48481cdfca570 (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
<?php
/**
 * @var Course $course
 * @var AuxLockRule[] $list
 * @var int $count
 * @var array $config
 */
?>
<? if ($list): ?>
    <form class='default' method='post'>
        <fieldset>
            <legend><?= _('Zusatzangaben') ?></legend>
            <label>
                <?= _('Set') ?>
                <select name='aux_data'>
                    <option value='0'>
                        <?= '-- '._('Keine Zusatzdaten')." --" ?>
                    </option>
                    <? foreach ($list as $aux): ?>
                        <option value='<?= $aux->id ?>' <?= $course->aux_lock_rule && $course->aux->id == $aux->id ? "selected" : "" ?>>
                            <?= htmlReady($aux->name) ?>
                        </option>
                    <? endforeach ?>
                </select>
            </label>
            <label>
                <input type='checkbox' name='forced' value='1' <?= $course->aux_lock_rule_forced ? "checked" : "" ?>>
                <?= _('Eingaben erzwingen') ?>
            </label>

            <? if($count): ?>
                <label>
                    <input type='checkbox' name='delete' value='1'>
                    <?= $count." "._('Datensätze vorhanden') ?> -
                    <?= _('Löschen?') ?>
                </label>
            <? endif; ?>
        </fieldset>

        <footer>
            <?= Studip\Button::create(_('Übernehmen'), 'save') ?>
        </footer>
    </form>
<? else: ?>
    <?= _('Keine Zusatzangaben vorhanden') ?>
<? endif; ?>