2019-11-12 23:49:37 -05:00
|
|
|
h1 Register
|
|
|
|
|
2020-07-28 16:56:26 -04:00
|
|
|
= form_for @changeset, Routes.registration_path(@conn, :create), fn f ->
|
2019-11-12 23:49:37 -05:00
|
|
|
= if @changeset.action do
|
|
|
|
.alert.alert-danger
|
|
|
|
p Oops, something went wrong! Please check the errors below.
|
|
|
|
|
|
|
|
.fieldlabel
|
|
|
|
' Non-anonymous posts permanently show your username as of posting time,
|
|
|
|
' and may appear on search engines; choose wisely.
|
|
|
|
.field
|
|
|
|
= text_input f, :name, class: "input", placeholder: "Username", required: true
|
|
|
|
= error_tag f, :name
|
|
|
|
|
|
|
|
.fieldlabel
|
|
|
|
' You'll use your email address to log in, and we'll use this to get in
|
|
|
|
' touch if we need to. Don't worry, we won't share this or spam you.
|
|
|
|
.field
|
2020-11-27 19:14:26 -06:00
|
|
|
= email_input f, :email, class: "input", placeholder: "Email", required: true, pattern: ~S/[^\s]+@[^\s]+\.[^\s]+/
|
2019-11-12 23:49:37 -05:00
|
|
|
= error_tag f, :email
|
|
|
|
|
|
|
|
.fieldlabel
|
2020-07-28 16:56:26 -04:00
|
|
|
' Pick a good strong password - longer is better! Minimum of 12 characters.
|
2019-11-12 23:49:37 -05:00
|
|
|
.field
|
2021-02-26 00:47:45 -05:00
|
|
|
= password_input f, :password, class: "input", placeholder: "Password", required: true, minlength: 12
|
2019-11-12 23:49:37 -05:00
|
|
|
= error_tag f, :password
|
|
|
|
.field
|
2021-02-26 00:47:45 -05:00
|
|
|
= password_input f, :password_confirmation, class: "input", placeholder: "Confirm password", required: true, minlength: 12
|
2020-01-26 18:09:37 -05:00
|
|
|
= error_tag f, :password_confirmation
|
2019-11-12 23:49:37 -05:00
|
|
|
|
2020-09-12 13:43:16 -04:00
|
|
|
= render PhilomenaWeb.CaptchaView, "_captcha.html", name: "registration", conn: @conn
|
2019-11-14 21:40:35 -05:00
|
|
|
|
2019-11-12 23:49:37 -05:00
|
|
|
br
|
|
|
|
|
|
|
|
.block.block--fixed.block--warning
|
|
|
|
p
|
|
|
|
' We won't share your personal information, won't send you spam emails,
|
|
|
|
' and take your security and privacy seriously.
|
|
|
|
p
|
|
|
|
strong
|
|
|
|
' Don't forget to read the
|
|
|
|
a<> href="/pages/rules" site rules
|
|
|
|
' before you dive in - they contain a quick introduction on how to
|
|
|
|
' use the site.
|
|
|
|
|
|
|
|
br
|
|
|
|
|
2019-12-30 19:07:02 -05:00
|
|
|
= submit "Sign Up", class: "button"
|