summaryrefslogtreecommitdiff
path: root/src/application/templates/bootstrap-3/delete_topic.twig
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/templates/bootstrap-3/delete_topic.twig')
-rw-r--r--src/application/templates/bootstrap-3/delete_topic.twig32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/application/templates/bootstrap-3/delete_topic.twig b/src/application/templates/bootstrap-3/delete_topic.twig
new file mode 100644
index 0000000..3107c89
--- /dev/null
+++ b/src/application/templates/bootstrap-3/delete_topic.twig
@@ -0,0 +1,32 @@
+{% set title = __("Delete topic") %}
+
+{% extends "base.twig" %}
+
+{% block content %}
+
+<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 <em>%topic%</em> including <strong>all posts and attachments</strong>?", {
+ "topic": ctx.topic.title|e("html"),
+ }) }}
+ </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="{{ ctx.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="{{ ctx.topic.id }}">
+ <input type="hidden" name="confirm" value="{{ ("confirm" ~ ctx.topic.id)|hash("sha256", true)|base64_encode }}">
+ <button class="btn btn-danger">{{ __("Delete topic &amp; posts") }}</button>
+ </form>
+ </div>
+ </div>
+</div>
+
+{% endblock %}