* 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.
7 lines
253 B
Plaintext
7 lines
253 B
Plaintext
<%= edit_form_for(ban) do |f| %>
|
|
<%= f.input :user_name, :as => :string, :input_html => { data: { autocomplete: "user" } } %>
|
|
<%= f.input :duration, :hint => "in days" %>
|
|
<%= f.input :reason %>
|
|
<%= f.button :submit, :value => "Ban" %>
|
|
<% end %>
|