2015-04-26 12:48:37 +05:30
|
|
|
.login-box
|
|
|
|
- if signin_enabled?
|
|
|
|
.login-heading
|
|
|
|
%h3 New user? Create an account
|
|
|
|
- else
|
|
|
|
.login-heading
|
|
|
|
%h3 Create an account
|
|
|
|
.login-body
|
2016-01-14 18:37:52 +05:30
|
|
|
- user = params[:user].present? ? params[:user] : {}
|
2015-04-26 12:48:37 +05:30
|
|
|
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
|
|
|
.devise-errors
|
|
|
|
= devise_error_messages!
|
|
|
|
%div
|
2016-01-14 18:37:52 +05:30
|
|
|
= f.text_field :name, class: "form-control top", value: user[:name], placeholder: "Name", required: true
|
2015-04-26 12:48:37 +05:30
|
|
|
%div
|
2016-01-14 18:37:52 +05:30
|
|
|
= f.text_field :username, class: "form-control middle", value: user[:username], placeholder: "Username", required: true
|
2015-04-26 12:48:37 +05:30
|
|
|
%div
|
2016-01-14 18:37:52 +05:30
|
|
|
= f.email_field :email, class: "form-control middle", value: user[:email], placeholder: "Email", required: true
|
2015-04-26 12:48:37 +05:30
|
|
|
.form-group.append-bottom-20#password-strength
|
2016-01-14 18:37:52 +05:30
|
|
|
= f.password_field :password, class: "form-control bottom", value: user[:password], id: "user_password_sign_up", placeholder: "Password", required: true
|
|
|
|
%div
|
|
|
|
- if current_application_settings.recaptcha_enabled
|
|
|
|
= recaptcha_tags
|
2015-04-26 12:48:37 +05:30
|
|
|
%div
|
|
|
|
= f.submit "Sign up", class: "btn-create btn"
|
|
|
|
|
|
|
|
.clearfix.prepend-top-20
|
|
|
|
%p
|
|
|
|
%span.light Didn't receive a confirmation email?
|
|
|
|
= succeed '.' do
|
|
|
|
= link_to "Request a new one", new_confirmation_path(resource_name)
|