2020-12-15 14:24:14 +01: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 %>
|
|
|
|
|
2020-12-21 15:40:19 +01:00
|
|
|
<%= text_input f, :username, required: true, placeholder: "Username" %>
|
|
|
|
<%= error_tag f, :username %>
|
2020-12-15 14:24:14 +01:00
|
|
|
|
2020-12-21 15:40:19 +01:00
|
|
|
<br />
|
|
|
|
|
2021-01-08 14:41:37 +01:00
|
|
|
<%= text_input f, :email, required: true, placeholder: "E-mail" %>
|
|
|
|
<%= error_tag f, :email %>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2020-12-21 15:40:19 +01:00
|
|
|
<%= password_input f, :password, required: true, placeholder: "Password" %>
|
2020-12-15 14:24:14 +01:00
|
|
|
<%= error_tag f, :password %>
|
|
|
|
|
2020-12-21 15:40:19 +01:00
|
|
|
<br />
|
|
|
|
|
2021-02-03 10:12:23 +01:00
|
|
|
<p>
|
2021-02-03 13:56:00 +01:00
|
|
|
Can you answer the following expression to confirm you are not a basic robot?
|
2021-02-03 10:12:23 +01:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<b><%= @captcha %> = </b>
|
|
|
|
|
|
|
|
<%= text_input f, :captcha, placeholder: "Captcha" %>
|
|
|
|
<%= error_tag f, :captcha %>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
2020-12-15 14:24:14 +01:00
|
|
|
<div>
|
|
|
|
<%= submit "Register" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|