pokemon-couture/lib/pokemon_couture_web/templates/user_registration/new.html.eex

35 lines
1.1 KiB
Elixir
Raw Normal View History

2021-06-28 11:14:14 +02:00
<h1>Register</h1>
<%= form_for @changeset, Routes.user_registration_path(@conn, :create), fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
2021-10-11 15:13:19 +02:00
<p><b>Please note:</b> As of now, the app keeps track of your email, but doesn't yet use the information for anything.</p>
<p>Email verification is not needed for anything, and if you want to change the e-mail address connected with your account,
you have to contact the admin.</p>
<%= label f, :username %>
<%= text_input f, :username, required: true %>
<%= error_tag f, :username %>
2021-06-28 11:14:14 +02:00
<%= label f, :email %>
<%= email_input f, :email, required: true %>
<%= error_tag f, :email %>
<%= label f, :password %>
<%= password_input f, :password, required: true %>
<%= error_tag f, :password %>
<div>
<%= submit "Register" %>
</div>
<% end %>
<p>
<%= link "Log in", to: Routes.user_session_path(@conn, :new) %> |
<%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>
</p>