edit.haml 1.92 KB
Newer Older
1
- content_for :page_title do
2
  = "#{AppConfig.settings.pod_name} - #{t('devise.passwords.edit.change_password')}"
3 4

#reset_password
Augier's avatar
Augier committed
5
  .container
flaburgan's avatar
flaburgan committed
6
    .text-center
Benjamin Neff's avatar
Benjamin Neff committed
7
      .logos-asterisk
flaburgan's avatar
flaburgan committed
8 9
      %h1
        = AppConfig.settings.pod_name
10

flaburgan's avatar
flaburgan committed
11
    = form_for(resource, as: resource_name, url: password_path(resource_name), html: {class: "form-horizontal block-form", method: :put }, autocomplete: 'off') do |f|
12 13
      = f.error_messages

Augier's avatar
Augier committed
14
      %fieldset.form
15 16
        %label#passwordLabel.sr-only{for: "user_password"}
          = t("devise.passwords.edit.new_password")
17
        %i.entypo-lock
18 19 20 21 22 23 24 25
        = f.password_field :password,
                           class:          "input-block-level form-control",
                           required:       true,
                           placeholder:    t("devise.passwords.edit.new_password"),
                           autocapitalize: "none",
                           autocorrect:    "off",
                           autofocus:      true,
                           aria:           {labelledby: "passwordLabel"}
26

flaburgan's avatar
flaburgan committed
27
        = f.hidden_field :reset_password_token
28

29 30
        %label#passwordConfirmationLabel.sr-only{for: "user_password_confirmation"}
          = t("devise.passwords.edit.confirm_password")
31
        %i.entypo-lock
32 33 34 35 36 37 38
        = f.password_field :password_confirmation,
                           class:          "input-block-level form-control",
                           required:       true,
                           placeholder:    t("devise.passwords.edit.confirm_password"),
                           autocapitalize: "none",
                           autocorrect:    "off",
                           aria:           {labelledby: "passwordConfirmationLabel"}
39 40

      = hidden_field(:user, :remember_me, value: 1)
Augier's avatar
Augier committed
41
      = f.submit t('devise.passwords.edit.change_password'), class: "btn btn-block btn-default"
42

flaburgan's avatar
flaburgan committed
43 44
    .text-center
      = link_to t('devise.shared.links.sign_in'), new_session_path(resource_name)