aboutsummaryrefslogtreecommitdiff
path: root/app/views/consultation/overview/book.php
blob: 89fa605289562ee50a53b4fdd62aeda3424c6d87 (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
<form name="reason_form" action="<?= $controller->book($slot->block, $slot) ?>" method="post" class="default">
    <?= CSRFProtection::tokenTag() ?>

<? if ($slot->block->show_participants): ?>
    <?= MessageBox::info(_('Bitte beachten Sie, dass Ihre Buchung öffentlich sichtbar sein wird'))->hideClose() ?>
<? endif; ?>

    <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>

    <? if ($slot->block->require_reason !== 'no'): ?>
        <label>
            <span <? if ($slot->block->require_reason === 'yes') echo 'class="required"'; ?>><?= _('Grund') ?></span>
            <textarea name="reason" <? if ($slot->block->require_reason === 'yes') echo 'required'; ?>></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>

        <label>
            <input type="checkbox" required>
            <?= _('Ich habe den obigen Hinweis zur Kenntnis genommen') ?>
        </label>
    <? endif; ?>
    </fieldset>


    <footer data-dialog-button>
        <?= Studip\Button::createAccept(_('Termin reservieren')) ?>
        <?= Studip\LinkButton::createCancel(
            _('Abbrechen'),
            $controller->indexURL("#block-{$slot->block_id}")
        ) ?>
    </footer>
</form>