Files
danbooru/app/views/user_feedbacks/new.html.erb
evazion cde76e66f6 forms: fix form validation error messages.
* Fix it so that all edit forms show an error banner if the form
  has validation errors. Previously forms had to manually call
  `error_messages_for`, which not all forms did.

* Fix it so that the full validation error message is shown next to each
  input attribute that had errors. Also update the styling of these
  error messages to look better.
2021-02-22 02:38:26 -06:00

25 lines
1.3 KiB
Plaintext

<div id="c-user-feedbacks">
<div id="a-new" class="fixed-width-container">
<h1>New User Feedback</h1>
<div class="fixed-width-container" id="negative-policy">
<p>Before submitting negative feedback, you must make a good faith effort at communicating with the user (through DMails) to tell them what they are doing wrong. It is unfair to drop a negative record on them without warning. If you have not done this with at least two weeks of notice, the user can dispute the feedback and have it removed. You will need to provide evidence that your feedback is accurate and you gave advanced warning, so you should collect any relevant links and include them in your feedback.</p>
<p>Please consult <%= link_to_wiki "the guide", "help:user_records" %> for advice on how to write constructive feedback.</p>
</div>
<div id="preview">
</div>
<%= edit_form_for(@user_feedback) do |f| %>
<%= f.input :user_name, :label => "User", :input_html => { value: @user_feedback.user.try(:name), data: { autocomplete: "user" } } %>
<%= f.input :category, :collection => ["positive", "neutral", "negative"], :include_blank => false %>
<%= f.input :body, as: :dtext %>
<%= f.button :submit, "Submit" %>
<%= dtext_preview_button "user_feedback_body" %>
<% end %>
</div>
</div>
<%= render "secondary_links" %>