aboutsummaryrefslogtreecommitdiff
path: root/templates/wiki/edit.php
blob: 3e42108a39d5f2ebbce11b9442e6cda1efe94d40 (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
<?= $contentbar ?>
<form method="post" action="<?= URLHelper::getLink('?cmd=edit', compact('keyword')) ?>" data-secure class="default">
    <?= CSRFProtection::tokenTag() ?>
    <fieldset>
        <legend><?= htmlReady(($keyword == 'WikiWikiWeb') ? _('Wiki-Startseite') : $keyword) ?></legend>

        <input type="hidden" name="wiki" value="<?= htmlReady($keyword) ?>">
        <input type="hidden" name="lastpage" value="<?= htmlReady($lastpage) ?>">
        <input type="hidden" name="version" value="<?= htmlReady($version) ?>">
        <input type="hidden" name="ancestor" value="<?= htmlReady($ancestor) ?>">
        <input type="hidden" name="submit" value="true">
        <input type="hidden" name="cmd" value="show">

        <br>
        <textarea name="body" class="wiki-editor add_toolbar wysiwyg size-l" data-editor="extraPlugins=WikiLink"
        ><?= wysiwygReady($body) ?></textarea>
    </fieldset>

    <footer>
        <div class="button-group">
            <?= Studip\Button::createAccept(_('Speichern')) ?>
            <?= Studip\Button::create(_('Speichern und weiter bearbeiten'), 'submit-and-edit') ?>
        </div>
        <?= Studip\LinkButton::createCancel(_('Abbrechen'), URLHelper::getURL('?cmd=abortedit', compact('keyword', 'lastpage'))) ?>
    </footer>
</form>