diff options
Diffstat (limited to 'app/views/devise/passwords/new.html.haml')
-rw-r--r-- | app/views/devise/passwords/new.html.haml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml index 1400ac9ca72..8e55977fe7a 100644 --- a/app/views/devise/passwords/new.html.haml +++ b/app/views/devise/passwords/new.html.haml @@ -1,20 +1,23 @@ .login-box .login-body - = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, class: 'gl-show-field-errors' }) do |f| + = gitlab_ui_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, class: 'gl-p-5 gl-show-field-errors', aria: { live: 'assertive' }}) do |f| .devise-errors = render "devise/shared/error_messages", resource: resource - .form-group.gl-px-5.gl-pt-5 - = f.label :email, class: ("gl-mb-1" if Feature.enabled?(:restyle_login_page)) + .form-group + = f.label :email, _('Email') = f.email_field :email, class: "form-control gl-form-input", required: true, autocomplete: 'off', value: params[:user_email], autofocus: true, title: _('Please provide a valid email address.') .form-text.text-muted - = _('Requires your primary GitLab email address.') + = _('Requires a verified GitLab email address.') - if recaptcha_enabled? - .gl-px-5 + .gl-mb-5 = recaptcha_tags nonce: content_security_policy_nonce - .gl-p-5 - = f.submit _("Reset password"), class: "gl-button btn-confirm btn" + = render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm, block: true) do + = _('Reset password') -.clearfix.prepend-top-20 +- if Feature.enabled?(:restyle_login_page, @project) = render 'devise/shared/sign_in_link' +- else + .gl-mt-3 + = render 'devise/shared/sign_in_link' |