summaryrefslogtreecommitdiff
path: root/src/application/views/form_delete_topic_confirm.php
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-13 23:10:34 +0200
committerJonas Kohl <git@jonaskohl.de>2024-09-13 23:10:34 +0200
commit948cead0f11d33adbcf0d08773c716e1b6ebb101 (patch)
tree527067829595305d0e1bfa87557aa8f5065b7caa /src/application/views/form_delete_topic_confirm.php
parent93817fef3ead7cfd4fcde25ea2bcec02d01310a4 (diff)
More changes
Diffstat (limited to 'src/application/views/form_delete_topic_confirm.php')
-rw-r--r--src/application/views/form_delete_topic_confirm.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/application/views/form_delete_topic_confirm.php b/src/application/views/form_delete_topic_confirm.php
new file mode 100644
index 0000000..d38ffaa
--- /dev/null
+++ b/src/application/views/form_delete_topic_confirm.php
@@ -0,0 +1,22 @@
+<div class="panel panel-danger">
+ <div class="panel-heading">
+ <h3 class="panel-title">Do you want to delete this topic?</h3>
+ </div>
+ <div class="panel-body">
+ Are you sure you want to delete the topic <strong><em><?= htmlentities($topic->title) ?></em></strong> <strong>including all posts and attachments</strong>?<br>
+ </div>
+ <div class="panel-footer">
+ <div class="text-right">
+ <form action="." method="get" class="seamless-inline">
+ <input type="hidden" name="_action" value="viewtopic">
+ <input type="hidden" name="topic" value="<?= htmlentities($topic->id) ?>">
+ <button class="btn btn-default">Keep topic</button>
+ </form>
+ <form action="?_action=deletetopic" method="post" class="seamless-inline">
+ <input type="hidden" name="topic" value="<?= htmlentities($topic->id) ?>">
+ <input type="hidden" name="confirm" value="<?= htmlentities(base64_encode(hash("sha256", "confirm" . $topic->id, true))); ?>">
+ <button class="btn btn-danger">Delete topic &amp; posts</button>
+ </form>
+ </div>
+ </div>
+</div>