aboutsummaryrefslogtreecommitdiff
path: root/app/views/consultation/admin/note.php
blob: 68703b47d57926af9171567a05799ac16c5320e2 (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
<? if (!$slot_id): ?>
    <?= MessageBox::info(
        _('Das Ändern der Information wird auch die Information aller Termine dieses Blocks ändern.')
    )->hideClose() ?>
<? endif; ?>

<form action="<?= $controller->note($block, $slot_id ?: 0, $page) ?>" method="post" class="default">
    <?= CSRFProtection::tokenTag() ?>

    <fieldset>
        <legend>
        <? if ($slot_id): ?>
            <?= _('Information zu diesem Termin bearbeiten') ?>
        <? else: ?>
            <?= _('Information zu diesem Terminblock bearbeiten') ?>
        <? endif; ?>
        </legend>

        <label>
            <?=_('Information') ?> (<?= _('öffentlich einsehbar') ?>)
            <textarea name="note"><?= htmlReady($slot_id ? $block->slots->find($slot_id)->note : $block->note ) ?></textarea>
        </label>
    </fieldset>

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