Files
danbooru/app/views/posts/partials/show/_delete_dialog.html.erb
2021-03-20 05:45:34 +01:00

12 lines
471 B
Plaintext

<div class="delete-post-dialog-body">
<%= embed_wiki("help:delete_notice") %>
<%= edit_form_for(post, method: :delete, remote: true) do |f| %>
<input type="hidden" name="commit" value="Delete">
<%= f.input :reason, as: :dtext, inline: true, input_html: { value: "" } %>
<% if post.parent_id.present? %>
<%= f.input :move_favorites, label: "Move favorites to parent", as: :boolean, input_html: { checked: false } %>
<% end %>
<% end %>
</div>