mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-28 13:57:59 +01:00
26 lines
793 B
Text
26 lines
793 B
Text
|
<h1>
|
||
|
Editing Name
|
||
|
</h1>
|
||
|
<%= form_for @changeset, ~p"/registrations/name", [as: :user], fn f -> %>
|
||
|
<%= if @changeset.action do %>
|
||
|
<div class="alert alert-danger">
|
||
|
<p>
|
||
|
Oops, something went wrong! Please check the errors below.
|
||
|
</p>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<p>
|
||
|
Enter your new name here. Usernames may only be changed once every 90 days. Please be aware that once you change your name, your previous name will be available for reuse, and someone else may claim it.
|
||
|
</p>
|
||
|
<div class="field">
|
||
|
<%= text_input(f, :name, class: "input", placeholder: "Name", required: true) %>
|
||
|
<%= error_tag(f, :name) %>
|
||
|
</div>
|
||
|
<div class="action">
|
||
|
<%= submit("Save", class: "button") %>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<p>
|
||
|
<%= link("Back", to: ~p"/registrations/edit") %>
|
||
|
</p>
|