aboutsummaryrefslogtreecommitdiff
path: root/app/views/consultation/admin/cancel_block.php
blob: 06a33feda232d8e099ffd268d4da2f53153bf9b8 (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
<form action="<?= $controller->cancel_block($block, $page) ?>" method="post" class="default">
    <?= CSRFProtection::tokenTag() ?>

    <fieldset>
        <legend><?= _('Termine absagen') ?></legend>

        <label>
            <?= _('Termin' ) ?><br>
            <ul class="default">
            <? foreach ($block->slots as $slot): ?>
                <? if ($slot->has_bookings): ?>
                    <li>
                        <?= $this->render_partial('consultation/slot-details.php', compact('slot')) ?>
                    </li>
                <? endif; ?>
            <? endforeach; ?>
            </ul>
        </label>

        <label>
            <?= _('Ort') ?><br>
            <?= htmlready($block->room) ?>
        </label>

        <label>
            <?= _('Grund der Absage') ?>
            <textarea name="reason"></textarea>
        </label>
    </fieldset>

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