blob: 9e2fa9172dcab4bc741139bef312fb9fc39b9ae7 (
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
|
<?php
/**
* @var Consultation_AdminController $controller
* @var ConsultationSlot $slot
* @var int $page
*/
?>
<form action="<?= $controller->store_booking($slot->block, $slot, $page) ?>" method="post" class="default">
<?= CSRFProtection::tokenTag() ?>
<fieldset>
<legend><?= _('Termin reservieren') ?></legend>
<label>
<?= _('Termin') ?><br>
<?= $this->render_partial('consultation/slot-details.php', compact('slot')) ?>
</label>
<label>
<?= _('Ort') ?><br>
<?= htmlready($slot->block->room) ?>
</label>
<label>
<span class="required">
<? if ($slot->block->range instanceof Course): ?>
<?= htmlReady(sprintf(
_('Teilnehmer der Veranstaltung "%s" suchen'),
$slot->block->range->getFullName()
)) ?>
<? else: ?>
<?= _('Person suchen') ?>
<? endif; ?>
</span>
<?= QuickSearch::get('user_id', $search_object)->setAttributes([
'required' => '',
])->withButton() ?>
</label>
<? if ($slot->block->require_reason !== 'no'): ?>
<label>
<?= _('Grund') ?>
<textarea name="reason"></textarea>
</label>
<? endif; ?>
<? if ($slot->block->confirmation_text): ?>
<label>
<?= _('Bitte lesen Sie sich den folgenden Hinweis durch:') ?>
<blockquote><?= htmlReady($slot->block->confirmation_text) ?></blockquote>
</label>
<? endif; ?>
</fieldset>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Termin reservieren')) ?>
<?= Studip\LinkButton::createCancel(
_('Abbrechen'),
$controller->indexURL($page, "#block-{$slot->block_id}")
) ?>
</footer>
</form>
|