aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/courses/lock_preselect.php
blob: b9bfcef73fa04c6ce2d075ab5e4a04d44e28d6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * @var array $values
 * @var SimpleCollection $all_lock_rules
 */
?>
<label><?= _('Für alle Veranstaltungen') ?>
    <select name="lock_sem_all" style="max-width: 200px">
        <? for ($i = 0; $i < count($all_lock_rules); $i++) : ?>
            <option value="<?= $all_lock_rules[$i]["lock_id"] ?>"
                <?= ($all_lock_rules[$i]["lock_id"] == $values['lock_rule']) ? 'selected' : '' ?>>
                <?= htmlReady($all_lock_rules[$i]["name"]) ?>
            </option>
        <? endfor ?>
    </select>
</label>

<?= \Studip\Button::createAccept(_('Zuweisen'), 'all'); ?>