summaryrefslogtreecommitdiff
path: root/src/application/templates/old/delete_topic.twig
blob: 59d2a02bcf9837639972b5d861856ca4f0d91c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% set title = __("Delete topic") %}

{% 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 topic?") }}</font></h3>
        </td>
    </tr>
    <tr>
        <td>
            {{ __("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"),
            }) }}
        </td>
    </tr>
    <tr>
        <td class="text-right">
            <form action="?_action=deletetopic" method="post" class="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><font color="red"><b>{{ __("Delete topic &amp; posts") }}</b></font></button>
            </form>
            <form action="." method="get" class="inline">
                <input type="hidden" name="_action" value="viewtopic">
                <input type="hidden" name="topic" value="{{ ctx.topic.id }}">
                <button>{{ __("Keep topic") }}</button>
            </form>
        </td>
    </tr>
</table>

{% endblock %}