summaryrefslogtreecommitdiff
path: root/src/application/views/form_delete_topic_confirm.php
blob: d38ffaa7bcb4ef814618ae59423c1a910c3f86c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>