-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdelete.html.twig
More file actions
71 lines (65 loc) · 3.06 KB
/
delete.html.twig
File metadata and controls
71 lines (65 loc) · 3.06 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{% extends '@forum/layout.html.twig' %}
{% block content %}
{{ fireHook('view.delete.start') }}
<div class="linkst">
<div class="inbox">
<ul class="crumbs">
<li><a href="{{ urlBase() }}">{{ trans('Index') }}</a></li>
<li><span>» </span><a href="{{ pathFor('Forum', {'id': cur_post.fid, 'name': slug(cur_post.forum_name)}) }}">{{ cur_post.forum_name }}</a></li>
<li><span>» </span><a href="{{ pathFor('viewPost', {'name': slug(cur_post.subject), 'id': "#{ id }", 'pid': "#{ id }"}) }}#p{{ id }}">{{ cur_post.subject }}</a></li>
<li><span>» </span><strong>{{ trans('Delete post') }}</strong></li>
</ul>
</div>
</div>
<div class="blockform">
<h2><span>{{ trans('Delete post') }}</span></h2>
<div class="box">
<form method="post" action="{{ pathFor('deletePost', {'id': id}) }}">
<input type="hidden" name="csrf_name" value="{{ csrf_name }}">
<input type="hidden" name="csrf_value" value="{{ csrf_value }}">
<div class="inform">
<div class="forminfo">
<h3><span>
{% if is_topic_post %}
{{ trans(['Topic by', '<strong>' ~ cur_post.poster ~'</strong>', formatTime(cur_post.posted) ]) }}
{% else %}
{{ trans(['Reply by', '<strong>' ~cur_post.poster ~'</strong>', formatTime(cur_post.posted) ]) }}
{% endif %}
</span>
</h3>
<p>
{{ is_topic_post ? "<strong>#{ trans('Topic warning') }</strong>"|raw : "<strong>#{ trans('Warning') }</strong>"|raw }}
<br />{{ trans('Delete info') }}
</p>
</div>
</div>
<p class="buttons"><input type="submit" name="delete" value="{{ trans('Delete') }}" />
<a href="javascript:history.go(-1)">{{ trans('Go back') }}</a>
</p>
</form>
</div>
</div>
<div id="postreview">
<div class="blockpost">
<div class="box">
<div class="inbox">
<div class="postbody">
<div class="postleft">
<dl>
<dt><strong>{{ cur_post.poster }}</strong></dt>
<dd><span>{{ formatTime(cur_post.posted) }}</span></dd>
</dl>
</div>
<div class="postright">
<div class="postmsg">
{{ cur_post.message|raw }}
</div>
</div>
</div>
<div class="clearer"></div>
</div>
</div>
</div>
</div>
{{ fireHook('view.delete.end') }}
{% endblock content %}