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

    <?= MessageBox::info(
        _('Das Ändern der Informationen wird auch alle Termine dieses Blocks ändern.')
    )->hideClose() ?>

    <fieldset>
        <legend><?= _('Terminblock bearbeiten') ?></legend>

        <label>
            <span class="required"><?= _('Ort') ?></span>
            <input required type="text" name="room" placeholder="<?= _('Ort') ?>"
                   value="<?= htmlReady($block->room) ?>">
        </label>

        <label>
            <?=_('Information zu den Terminen in diesem Block') ?> (<?= _('Öffentlich einsehbar') ?>)
            <textarea name="note"><?= htmlReady($block->note ) ?></textarea>
        </label>

    <? if ($responsible): ?>
        <?= $this->render_partial('consultation/admin/block-responsibilities.php', compact('responsible', 'block')) ?>
    <? endif; ?>
    </fieldset>

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