Files
danbooru/app/views/user_name_change_requests/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

18 lines
613 B
Plaintext

<div id="c-user-name-change-requests">
<div id="a-new">
<h1>Name Change Request</h1>
<p>You can request a name change once per week. Your previous names will still
be visible on your profile to other Danbooru members, but they won't be visible
to search engines.</p>
<%= edit_form_for(@change_request) do |f| %>
<%= f.input :desired_name, label: "Name" %>
<%= f.input :desired_name_confirmation, label: "Confirm name" %>
<%= f.submit "Submit", "data-confirm": "Are you sure you want to change your name?" %>
<% end %>
</div>
</div>
<%= render "secondary_links" %>