File: new.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (17 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
= gitlab_ui_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, class: 'gl-show-field-errors', aria: { live: 'assertive' }}) do |f|
  .devise-errors
    = render "devise/shared/error_messages", resource: resource
  .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.gl-text-subtle
      = _('Requires your primary or verified secondary GitLab email address.')

  .form-group
    - if recaptcha_enabled?
      = recaptcha_tags nonce: content_security_policy_nonce

  = render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm, block: true) do
    = _('Reset password')

= render 'devise/shared/sign_in_link'