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

#forgot_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 12 13 14
    = form_for(resource, as: resource_name, url: password_path(resource_name), html: {class: "form-horizontal block-form"}, autocomplete: 'off') do |f|
      - if !devise_error_messages!.empty?
        %legend
          %i
15
            = t('devise.passwords.new.no_account') # this is an error message and should not be displayed as a legend
flaburgan's avatar
flaburgan committed
16
      %fieldset
17 18
        %label#emailLabel.sr-only{for: "user_email"}
          = t("devise.passwords.new.email")
19
        %i.entypo-mail
20 21 22 23 24 25 26 27 28
        = f.text_field :email,
                       class:          "input-block-level form-control",
                       required:       true,
                       autocapitalize: "off",
                       placeholder:    t("devise.passwords.new.email"),
                       autocorrect:    "off",
                       autofocus:      true,
                       aria:           {labelledby: "passwordLabel"}

Augier's avatar
Augier committed
29
      = f.submit t('devise.passwords.new.send_password_instructions'), class: "btn btn-block btn-default"
30

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