diff options
author | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-12-10 17:15:10 +0100 |
commit | 7d685c5e64149e20c7dc8977f645e050be53ddfd (patch) | |
tree | 44a931c23979aaa2e22b079f8af9232f490eb4d3 /src/application/templates/old/delete_post.twig | |
parent | 7c9f91333da983da37d3dc837fa61ef0bff64549 (diff) |
Add classic theme
Diffstat (limited to 'src/application/templates/old/delete_post.twig')
-rw-r--r-- | src/application/templates/old/delete_post.twig | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/application/templates/old/delete_post.twig b/src/application/templates/old/delete_post.twig new file mode 100644 index 0000000..62c25fe --- /dev/null +++ b/src/application/templates/old/delete_post.twig @@ -0,0 +1,42 @@ +{% set title = __("Delete post") %} + +{% extends "base.twig" %} + +{% block content %} + +<table border="1" bordercolor="silver" cellspacing="0" cellpadding="4" width="100%"> + <tr> + <td bgcolor="pink"> + <h3 class="m-0"><font color="red">{{ __("Do you want to delete this post?") }}</font></h3> + </td> + </tr> + <tr> + <td> + {{ __("Are you sure you want to delete the following post:") }}<br><br> + <table border="1" bordercolor="silver" cellspacing="0" cellpadding="4" width="100%"> + {% include "components/post.twig" with { + post: ctx.post, + postAuthor: ctx.postAuthor, + attachments: ctx.attachments, + hide_actions: true, + } %} + </table> + </td> + </tr> + <tr> + <td class="text-right"> + <form action="?_action=deletepost" method="post" class="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><font color="red"><b>{{ __("Delete post") }}</b></font></button> + </form> + <form action=".#post-{{ ctx.post.id }}" method="get" class="inline"> + <input type="hidden" name="_action" value="viewtopic"> + <input type="hidden" name="topic" value="{{ ctx.post.topicId }}"> + <button>{{ __("Keep post") }}</button> + </form> + </td> + </tr> +</table> + +{% endblock %} |