blob: 69a0cd906a8af01e6320cea1d799fff090819815 (
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
|
<? if (count($slots) === 0): ?>
<?= MessageBox::info(_('Sie haben aktuell keine Termine gebucht.'))->hideClose() ?>
<? else: ?>
<table class="default">
<colgroup>
<col width="10%">
<col width="10%">
<col>
<col width="24px">
</colgroup>
<thead>
<tr>
<th><?= _('Uhrzeit') ?></th>
<th><?= _('Status') ?></th>
<th>
<?= _('Informationen') ?> /
<?= _('Mein Grund der Buchung') ?>:
</th>
<th></th>
</tr>
</thead>
<tbody>
<? $last_block = null;
foreach ($slots as $slot): ?>
<? if ($slot->block != $last_block): ?>
<tr id="block-<?= htmlReady($slot->block->id) ?>">
<th colspan="4">
<?= $this->render_partial('consultation/block-description.php', ['block' => $slot->block]) ?>
</th>
</tr>
<? endif; ?>
<tr id="slot-<?= htmlReady($slot->id) ?>">
<td>
<?= date('H:i', $slot->start_time) ?>
-
<?= date('H:i', $slot->end_time) ?>
</td>
<td>
<?= $this->render_partial('consultation/slot-occupation.php', compact('slot')) ?>
</td>
<td>
<?= $this->render_partial('consultation/slot-bookings.php', compact('slot')) ?>
</td>
<td class="actions">
<a href="<?= $controller->cancel($slot->block, $slot, 1) ?>" data-dialog="size=auto">
<?= Icon::create('trash')->asImg(tooltip2(_('Termin absagen'))) ?>
</a>
</td>
</tr>
<? $last_block = $slot->block;
endforeach; ?>
</tbody>
</table>
<? endif; ?>
|