summaryrefslogtreecommitdiff
path: root/app/views/devise/passwords/edit.html.haml
blob: fee87c6324cee97a5b611a22f9387aaf2cbca26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
= render 'devise/shared/tab_single', tab_title:'Change your password'
.login-box
  .login-body
    = form_for(resource, as: resource_name, url: password_path(:user), html: { method: :put, class: 'gl-show-field-errors' }) do |f|
      .devise-errors
        = render "devise/shared/error_messages", resource: resource
      = f.hidden_field :reset_password_token
      .form-group
        = f.label 'New password', for: "user_password"
        = f.password_field :password, class: "form-control top", required: true, title: 'This field is required', data: { qa_selector: 'password_field'}
      .form-group
        = f.label 'Confirm new password', for: "user_password_confirmation"
        = f.password_field :password_confirmation, class: "form-control bottom", title: 'This field is required', data: { qa_selector: 'password_confirmation_field' }, required: true
      .clearfix
        = f.submit "Change your password", class: "btn btn-primary", data: { qa_selector: 'change_password_button' }

.clearfix.prepend-top-20
  %p
    %span.light Didn't receive a confirmation email?
    = link_to "Request a new one", new_confirmation_path(:user)
= render 'devise/shared/sign_in_link'