blob: 38a1299e18516dd4603176dc4538cf4b124bd81a (
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
|
<form class="default" action="<?= $controller->current_day_dates() ?>" method="post">
<?= CSRFProtection::tokenTag() ?>
<table class="dates default sortable-table" data-sortlist="[[0, 0]]" data-table-id="<?= htmlReady($course->id) ?>">
<thead>
<tr>
<th><?= _('Zeit') ?></th>
<th data-sort="text"><?= _('Raum') ?></th>
<th data-sort="htmldata"><?= _('Anzahl der Teilnehmenden') ?></th>
</tr>
</thead>
<tbody>
<? foreach ($dates as $date): ?>
<tr>
<td class="date_name">
<?= Icon::create('date')->asSvg(Icon::SIZE_INLINE, ['class' => 'text-bottom']) ?>
<?= htmlReady($date->getFullName(CourseDate::FORMAT_VERBOSE)) ?>
</td>
<td>
<? $rooms = $date->getRooms(); ?>
<? if ($rooms): ?>
<? foreach ($rooms as $room) : ?>
<a href="<?= $room->getActionLink('show') ?>" data-dialog>
<?= htmlReady($room->name) ?>
</a>
<? endforeach ?>
<? else: ?>
<?= htmlReady($date->raum) ?>
<? endif ?>
</td>
<td data-sort-value="<?= htmlReady($date->number_of_participants) ?>">
<input type="hidden" name="termin_id[]" value="<?= htmlReady($date->termin_id) ?>">
<input type="number" min="0" name="number_of_participants[]" value="<?= htmlReady($date->number_of_participants) ?>">
</td>
</tr>
<? endforeach; ?>
<?if (count($dates) === 0) : ?>
<tr>
<td colspan="3">
<?= _('Es sind noch keine laufenden Termine vorhanden.') ?>
</td>
</tr>
<? endif ?>
</tbody>
</table>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Speichern')) ?>
<?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->indexURL()) ?>
</footer>
</form>
|