aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/wiki/ask_deleting.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/course/wiki/ask_deleting.php')
-rw-r--r--app/views/course/wiki/ask_deleting.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/course/wiki/ask_deleting.php b/app/views/course/wiki/ask_deleting.php
new file mode 100644
index 0000000..5afd19f
--- /dev/null
+++ b/app/views/course/wiki/ask_deleting.php
@@ -0,0 +1,31 @@
+<form action="" method="post">
+ <?= CSRFProtection::tokenTag() ?>
+ <div class="file_select_possibilities">
+ <div>
+ <div class="clickable">
+ <?= Icon::create('archive2')->asInput(50, [
+ 'formaction' => $controller->deleteversionURL($page, ['redirect_to' => 'page']),
+ 'data-confirm' => _('Wirklich die letzte Änderung löschen?')
+ ]) ?>
+ <button
+ class="undecorated"
+ data-confirm="<?= _('Wirklich die letzte Änderung löschen?') ?>"
+ formaction="<?= $controller->deleteversionURL($page, ['redirect_to' => 'page']) ?>">
+ <?= _('Nur die letzte Änderung löschen') ?>
+ </button>
+ </div>
+ <div class="clickable">
+ <?= Icon::create('wiki')->asInput(50, [
+ 'formaction' => $controller->deleteURL($page),
+ 'data-confirm' => _('Wollen Sie wirklich die komplette Seite löschen?')
+ ]) ?>
+ <button
+ class="undecorated"
+ data-confirm="<?= _('Wollen Sie wirklich die komplette Seite löschen?') ?>"
+ formaction="<?= $controller->deleteURL($page) ?>">
+ <?= _('Ganze Wikiseite löschen') ?>
+ </button>
+ </div>
+ </div>
+ </div>
+</form>