Fix #4770: Allow flaggers to update flag reason.

This commit is contained in:
evazion
2021-03-23 01:25:43 -05:00
parent 41e0cad458
commit 6a84d33409
6 changed files with 98 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
<div id="c-post-flags">
<div id="a-edit">
<h1>Edit Flag</h1>
<p>
Editing flag for <%= link_to "post ##{@post_flag.post_id}", @post_flag.post %>.
</p>
<%= edit_form_for(@post_flag) do |f| %>
<%= f.input :reason, as: :dtext, inline: true %>
<%= f.button :submit, "Submit" %>
<%= dtext_preview_button "post_flag_reason" %>
<% end %>
</div>
</div>