diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2021-11-04 13:28:13 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2021-11-04 13:28:13 +0000 |
| commit | bca463638c5b919a34ec90f3909c2eb44d2d1f77 (patch) | |
| tree | 7941a9e178dff09ad8a98367ed59bbf43d926846 /app/views/consultation/admin/edit.php | |
| parent | 0fe45573d21b5110a46de7b6dc60cbcec3f99de7 (diff) | |
fixes #132
Diffstat (limited to 'app/views/consultation/admin/edit.php')
| -rw-r--r-- | app/views/consultation/admin/edit.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/views/consultation/admin/edit.php b/app/views/consultation/admin/edit.php new file mode 100644 index 0000000..6f1911a --- /dev/null +++ b/app/views/consultation/admin/edit.php @@ -0,0 +1,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> |
