summaryrefslogtreecommitdiff
path: root/src/application/templates/bootstrap-3/delete_post.twig
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/templates/bootstrap-3/delete_post.twig')
-rw-r--r--src/application/templates/bootstrap-3/delete_post.twig36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/application/templates/bootstrap-3/delete_post.twig b/src/application/templates/bootstrap-3/delete_post.twig
new file mode 100644
index 0000000..90eaf09
--- /dev/null
+++ b/src/application/templates/bootstrap-3/delete_post.twig
@@ -0,0 +1,36 @@
+{% set title = __("Delete post") %}
+
+{% extends "base.twig" %}
+
+{% block content %}
+
+<div class="panel panel-danger">
+ <div class="panel-heading">
+ <h3 class="panel-title">{{ __("Do you want to delete this post?") }}</h3>
+ </div>
+ <div class="panel-body">
+ {{ __("Are you sure you want to delete the following post:") }}<br>
+ {% include "components/post.twig" with {
+ post: ctx.post,
+ postAuthor: ctx.postAuthor,
+ attachments: ctx.attachments,
+ hide_actions: true,
+ } %}
+ </div>
+ <div class="panel-footer">
+ <div class="text-right">
+ <form action=".#post-{{ ctx.post.id }}" method="get" class="seamless-inline">
+ <input type="hidden" name="_action" value="viewtopic">
+ <input type="hidden" name="topic" value="{{ ctx.post.topicId }}">
+ <button class="btn btn-default">{{ __("Keep post") }}</button>
+ </form>
+ <form action="?_action=deletepost" method="post" class="seamless-inline">
+ <input type="hidden" name="post" value="{{ ctx.post.id }}">
+ <input type="hidden" name="confirm" value="{{ ("confirm" ~ ctx.post.id)|hash("sha256", true)|base64_encode }}">
+ <button class="btn btn-danger">{{ __("Delete post") }}</button>
+ </form>
+ </div>
+ </div>
+</div>
+
+{% endblock %}