2016-11-03 12:29:30 +05:30
|
|
|
#register-pane.login-box{ role: 'tabpanel', class: 'tab-pane' }
|
2015-04-26 12:48:37 +05:30
|
|
|
.login-body
|
2016-11-03 12:29:30 +05:30
|
|
|
= form_for(resource, as: "new_#{resource_name}", url: registration_path(resource_name), html: { class: "new_new_user show-gl-field-errors", "aria-live" => "assertive" }) do |f|
|
2015-04-26 12:48:37 +05:30
|
|
|
.devise-errors
|
|
|
|
= devise_error_messages!
|
2016-11-03 12:29:30 +05:30
|
|
|
%div.form-group
|
|
|
|
= f.label :name
|
|
|
|
= f.text_field :name, class: "form-control top", required: true, title: "This field is required."
|
|
|
|
%div.username.form-group
|
|
|
|
= f.label :username
|
|
|
|
= f.text_field :username, class: "form-control middle no-gl-field-error", pattern: "[a-zA-Z0-9]+", required: true, title: 'Please create a username with only alphanumeric characters.'
|
|
|
|
%p.validation-error.hide Username is already taken.
|
|
|
|
%p.validation-success.hide Username is available.
|
|
|
|
%p.validation-pending.hide Checking username availability...
|
|
|
|
%div.form-group
|
|
|
|
= f.label :email
|
|
|
|
= f.email_field :email, class: "form-control middle", required: true, title: "Please provide a valid email address."
|
2015-04-26 12:48:37 +05:30
|
|
|
.form-group.append-bottom-20#password-strength
|
2016-11-03 12:29:30 +05:30
|
|
|
= f.label :password
|
|
|
|
= f.password_field :password, class: "form-control bottom", required: true, pattern: ".{#{@minimum_password_length},}", title: "Minimum length is #{@minimum_password_length} characters."
|
|
|
|
%p.gl-field-hint Minimum length is #{@minimum_password_length} characters
|
2016-01-14 18:37:52 +05:30
|
|
|
%div
|
|
|
|
- if current_application_settings.recaptcha_enabled
|
|
|
|
= recaptcha_tags
|
2015-04-26 12:48:37 +05:30
|
|
|
%div
|
2016-11-03 12:29:30 +05:30
|
|
|
= f.submit "Register", class: "btn-register btn"
|
|
|
|
.clearfix.submit-container
|
2015-04-26 12:48:37 +05:30
|
|
|
%p
|
|
|
|
%span.light Didn't receive a confirmation email?
|
|
|
|
= succeed '.' do
|
|
|
|
= link_to "Request a new one", new_confirmation_path(resource_name)
|