delete action from post/show requires confirmation+flag reason now
This commit is contained in:
15
app/views/moderator/post/posts/confirm_delete.html.erb
Normal file
15
app/views/moderator/post/posts/confirm_delete.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<h1>Delete Post</h1>
|
||||
|
||||
<div>
|
||||
<%= PostPresenter.preview(@post) %>
|
||||
</div>
|
||||
|
||||
<%= form_tag(delete_moderator_post_post_path, :style => "clear: both;", :class => "simple_form") do %>
|
||||
<div class="input">
|
||||
<label for="reason">Reason</label>
|
||||
<%= text_area_tag "reason" %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag "Delete" %>
|
||||
<%= submit_tag "Cancel" %>
|
||||
<% end %>
|
||||
@@ -1,4 +0,0 @@
|
||||
$("#c-posts #delete").hide();
|
||||
$("#c-posts #undelete").show();
|
||||
$("#c-post-moderation #post-<%= @post.id %>").remove();
|
||||
Danbooru.notice("Post was deleted");
|
||||
Reference in New Issue
Block a user