24 lines
562 B
Elixir
24 lines
562 B
Elixir
<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 %>
|
|
|
|
<%= text_input f, :username, required: true, placeholder: "Username" %>
|
|
<%= error_tag f, :username %>
|
|
|
|
<br />
|
|
|
|
<%= password_input f, :password, required: true, placeholder: "Password" %>
|
|
<%= error_tag f, :password %>
|
|
|
|
<br />
|
|
|
|
<div>
|
|
<%= submit "Register" %>
|
|
</div>
|
|
<% end %>
|