blob: ea555a5e86c8b821a002c916fb98ff9be5e38904 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php
/**
* @var Evaluation_ArchiveController $controller
*/
use Studip\Button;
?>
<form method="post">
<?= CSRFProtection::tokenTag() ?>
<table class="default sortable-table" id="evaluation_table">
<caption><?= _('Archivierte Evaluationen') ?></caption>
<thead>
<tr>
<th style="width: 20px" scope="col">
<input type="checkbox"
data-proxyfor="#evaluation_table > tbody input[type=checkbox]"
data-activates="#evaluation_table tfoot button">
</th>
<th data-sort="text" scope="col"><?= _('Titel') ?></th>
<th data-sort="text" scope="col"><?= _('Veranstaltung') ?></th>
<th data-sort="digit" scope="col"><?= _('Start') ?></th>
<th data-sort="digit" scope="col"><?= _('Ende') ?></th>
</tr>
</thead>
<tbody>
<?php if (count($controller->eval_assignments)) : ?>
<?php foreach ($controller->eval_assignments as $assignment) : ?>
<tr>
<td>
<input type="checkbox" name="assignments[]" value="<?= htmlReady($assignment->id) ?>">
<td>
<?= htmlReady($assignment->questionnaire->title ?? '') /*TODO link to statistic*/ ?>
</td>
</td>
<td>
<?= htmlReady($assignment->course_metadata) /*TODO course name*/ ?>
</td>
<td data-text="<?= (int) $assignment->startdate?>">
<?= date('d.m.Y H:i', $assignment->startdate) ?>
</td>
<td data-text="<?= (int) $assignment->stopdate?>">
<?= date('d.m.Y H:i', $assignment->stopdate) ?>
</td>
</tr>
<?php endforeach ?>
<?php else : ?>
<tr>
<td colspan="5" style="text-align: center">
<?= _('Es stehen keine Evaluationen zur Verfügung.') ?>
</td>
</tr>
<? endif ?>
</tbody>
<tfoot>
<tr>
<td colspan="5">
<?= Button::create(_("Löschen"), "bulkdelete", [
'formaction' => $controller->bulk('delete'),
'data-confirm' => _("Wirklich löschen?")
]) ?>
<?= Button::create(_("Exportieren"), "bulkexport", [
'formaction' => $controller->bulk('export')
]) ?>
</td>
</tr>
</tfoot>
</table>
</form>
|