From fe0f414dc0211a4014581dc03fcfd514ed7ed02d Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 17 Oct 2024 10:56:01 +0200
Subject: Transition templating to Twig

---
 src/application/views/form_delete_post_confirm.php | 26 ----------------------
 1 file changed, 26 deletions(-)
 delete mode 100644 src/application/views/form_delete_post_confirm.php

(limited to 'src/application/views/form_delete_post_confirm.php')

diff --git a/src/application/views/form_delete_post_confirm.php b/src/application/views/form_delete_post_confirm.php
deleted file mode 100644
index e127235..0000000
--- a/src/application/views/form_delete_post_confirm.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<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>
-        <?php _view("view_post", [
-                ...$___PARAMS,
-                "hide_actions" => true
-            ]) ?>
-    </div>
-    <div class="panel-footer">
-        <div class="text-right">
-            <form action=".#post-<?= htmlentities(urlencode($post->id)) ?>" method="get" class="seamless-inline">
-                <input type="hidden" name="_action" value="viewtopic">
-                <input type="hidden" name="topic" value="<?= htmlentities($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="<?= htmlentities($post->id) ?>">
-                <input type="hidden" name="confirm" value="<?= htmlentities(base64_encode(hash("sha256", "confirm" . $post->id, true))); ?>">
-                <button class="btn btn-danger"><?= __("Delete post") ?></button>
-            </form>
-        </div>
-    </div>
-</div>
-- 
cgit v1.2.3