* 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.
19 lines
520 B
Plaintext
19 lines
520 B
Plaintext
<div id="c-user-feedbacks">
|
|
<div id="a-edit">
|
|
<h1>Edit User Feedback</h1>
|
|
|
|
<div id="preview">
|
|
</div>
|
|
|
|
<%= edit_form_for(@user_feedback) do |f| %>
|
|
<%= f.input :category, :collection => ["positive", "neutral", "negative"], :include_blank => false %>
|
|
<%= f.input :body, as: :dtext %>
|
|
<%= f.input :is_deleted, label: "Deleted" %>
|
|
<%= f.button :submit, "Submit" %>
|
|
<%= dtext_preview_button "user_feedback_body" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|