summaryrefslogtreecommitdiff
path: root/app/views/profiles/passwords/new.html.haml
blob: d265f3c44ba2d8c61304a791749f93fd99b837bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- page_title    "New Password"
- header_title  "New Password"
%h3.page-title Set up new password
%hr
= form_for @user, url: profile_password_path, method: :post do |f|
  %p.slead
    Please set a new password before proceeding.
    %br
    After a successful password update you will be redirected to login screen.

  = form_errors(@user)

  - unless @user.password_automatically_set?
    .form-group.row
      = f.label :current_password, class: 'col-form-label col-sm-2'
      .col-sm-10= f.password_field :current_password, required: true, class: 'form-control'
  .form-group.row
    = f.label :password, class: 'col-form-label col-sm-2'
    .col-sm-10= f.password_field :password, required: true, class: 'form-control'
  .form-group.row
    = f.label :password_confirmation, class: 'col-form-label col-sm-2'
    .col-sm-10
      = f.password_field :password_confirmation, required: true, class: 'form-control'
  .form-actions
    = f.submit 'Set new password', class: "btn btn-success"