blob: 0e7067a5fd1c03fe108d525213b6a59e84565f77 (
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
|
<form action="<?= $action ?>" method="post" class="default">
<?= CSRFProtection::tokenTag() ?>
<input type="hidden" name="cancel" value="1">
<?= addHiddenFields('slot-id', $slots->map(function ($slot) {
return "{$slot->block_id}-{$slot->id}";
})) ?>
<fieldset>
<legend><?= _('Termine absagen') ?></legend>
<? if (!empty($allow_delete)): ?>
<p>
<?= _('Die folgenden Termine sind belegt und müssen abgesagt werden bevor sie gelöscht werden können.') ?>
<? if ($mixed): ?>
<?= _('Alternativ können Sie auch nur die freien Termine löschen.') ?>
<? endif; ?>
</p>
<? endif; ?>
<label>
<?= _('Termin') ?><br>
<ul class="default">
<? foreach ($slots as $slot): ?>
<? if ($slot->has_bookings): ?>
<li>
<?= $this->render_partial('consultation/slot-details.php', compact('slot')) ?>
</li>
<? endif; ?>
<? endforeach; ?>
</ul>
</label>
<label>
<?= _('Grund der Absage') ?>
<textarea name="reason"></textarea>
</label>
</fieldset>
<footer data-dialog-button>
<? if (!empty($allow_delete)): ?>
<?= Studip\Button::createAccept(_('Termine absagen und löschen'), 'delete', [
'value' => 'cancel',
]) ?>
<? if ($mixed): ?>
<?= Studip\Button::create(_('Nur freie Termine löschen'), 'delete', [
'value' => 'skip',
]) ?>
<? endif; ?>
<? else: ?>
<?= Studip\Button::createAccept(_('Termine absagen')) ?>
<? endif; ?>
<?= Studip\LinkButton::createCancel(
_('Abbrechen'),
$controller->indexURL($page ?? null, isset($block) ?"#block-{$block->id}" : '')
) ?>
</footer>
</form>
|