aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/courses/aux-select.php
blob: 0b87029279fd43f9802508c71516660209e07a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * @var Course $course
 * @var AuxLockRule[] $aux_lock_rules
 * @var array $values
 */
?>
<select name="lock_sem[<?= htmlReady($course->id) ?>]" style="max-width: 200px">
    <option value="none">
        --<?= _('keine Zusatzangaben') ?>--
    </option>
<? foreach ($aux_lock_rules as $rule) : ?>
    <option value="<?= htmlReady($rule->id) ?>" <? if ($course->aux_lock_rule === $rule->id) echo 'selected'; ?>>
        <?= htmlReady($rule->name) ?>
    </option>
<? endforeach ?>
</select>
<br>
<label>
    <input type="checkbox" value="1" name="lock_sem_forced[<?= htmlReady($course->id) ?>]"
           <?= $course->aux_lock_rule_forced ? 'checked' : '' ?>>
    <?=_('Erzwungen')?>
</label>