blob: 2c376616f2a6c1af9711fc120ce564e3de2f50cd (
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
|
<?php
/**
* @var Vips_SheetsController $controller
* @var int[] $assignment_ids
* @var Course[] $courses
* @var string $course_id
*/
?>
<form class="default" action="<?= $controller->copy_assignments() ?>" method="POST">
<?= CSRFProtection::tokenTag() ?>
<? foreach ($assignment_ids as $assignment_id): ?>
<input type="hidden" name="assignment_ids[]" value="<?= $assignment_id ?>">
<? endforeach ?>
<label>
<?= _('Ziel auswählen') ?>
<select name="course_id" class="vips_nested_select">
<option value="">
<?= _('Persönliche Aufgabensammlung') ?>
</option>
<? foreach ($courses as $course): ?>
<option value="<?= $course->id ?>" <?= $course->id == $course_id ? 'selected' : '' ?>>
<?= htmlReady($course->name) ?> (<?= htmlReady($course->start_semester->name) ?>)
</option>
<? endforeach ?>
</select>
</label>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Kopieren'), 'copy') ?>
</footer>
</form>
|