discourse-legacysite-perl/site/forum/post_delete_confirm.html

79 lines
2.8 KiB
HTML
Raw Permalink Normal View History

2024-06-17 12:24:05 +00:00
<%~--
This page is displayed when you click delete - it serves as a delete
confirmation page.
--%>
<%include include_common_head.html%>
<%~GForum::Post::View::get($in.post)%>
<%~set post_dne = 0%>
<%~if not post_id%><%set post_dne = 1%>
<%~elsif post_moved and this_do ne post_delete_moved_confirm%><%set post_dne = 1%>
<%~endif%>
<%~if post_dne%><%set error = GForum::language('POST_DOES_NOT_EXIST')%><%include error.html%><%endparse%><%endunless~%>
<%~set search_widget = 1%>
<!DOCTYPE html >
<html lang="en">
<head>
<title><%cat_full_name%>: Confirm delete</title>
<%include include_common_head.html%>
</head>
<body class="page-<%page_id%>">
<div class="container-b">
<%include include_header.html%>
<div class="main">
<div class="contentwrapper clearfix">
<div class="sidebar">
<%include include_sidebar.html%>
</div>
<%~set content_header_title = 'Confirm deletion'%>
<%~init array breadcrumbs%><%init hash breadcrumbs.0%><%init hash breadcrumbs.1%>
<%~set breadcrumbs.0.name = $forum_name%>
<%~set breadcrumbs.0.url = GForum::SEO::url(params => "forum=$forum_id")%>
<%~set breadcrumbs.1.name = $content_header_title%>
<%include include_breadcrumb.html%>
<div class="content"><%-- start content--%>
<%include include_content_header.html%>
<p>You have chosen to delete the following post:</p>
<%~if post_moved%>
<p>Note that since this is a moved post, you are only deleting the move record, not the original post.</p>
<%~endif%>
<%~set hide_post_menu = 1%>
<%~set tags=GForum::Tags::get_tags_from_post($post_id)%>
<%include include_post_display.html%>
<hr class="line" />
<div class="btn-wrapper alone">
<form action="<%GForum::SEO::url()%>" method="post">
<%hidden_form%>
<%~if post_moved%>
<input type="submit" name="do=post_remove;post=<%post_id%>" value="Delete moved post" class="btn default" />
<%~else%>
<%~if user_forum_permission >= 6%>
<input type="submit" name="do=post_remove_one;post=<%post_id%>" value="Remove Post" class="btn default" />
<%~if post_replies%>
<input type="submit" name="do=post_remove;post=<%post_id%>" value="Remove Post and all <%post_replies%> replies" class="btn default" />
<%~endif%>
<%~endif%>
<input type="submit" name="do=post_delete;post=<%post_id%>" value="Mark Post Deleted" class="btn default" />
<%~endif%>
</form>
</div>
</div><%-- end content --%>
</div>
</div>
<%include include_footer.html%>
</div>
</body>
<%~include include_global_js.html%>
</html>