meta/lib/recycledcloud_web/templates/user_registration/new.html.eex

29 lines
671 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 />
<%= text_input f, :email, required: true, placeholder: "E-mail" %>
<%= error_tag f, :email %>
<br />
<%= password_input f, :password, required: true, placeholder: "Password" %>
<%= error_tag f, :password %>
<br />
<div>
<%= submit "Register" %>
</div>
<% end %>