Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new.haml « passwords « devise « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 627aa3a1daefa9baf206f8a07710a8ea682fb35f (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
26
27
28
29
30
31
32
- content_for :page_title do
  = "#{AppConfig.settings.pod_name} - #{t('devise.passwords.new.forgot_password')}"

#forgot_password
  .container
    .text-center
      .logos-asterisk
      %h1
        = AppConfig.settings.pod_name

    = 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
            = t('devise.passwords.new.no_account') # this is an error message and should not be displayed as a legend
      %fieldset
        %label#emailLabel.sr-only{for: "user_email"}
          = t("devise.passwords.new.email")
        %i.entypo-mail
        = f.text_field :email,
                       class:          "input-block-level form-control",
                       required:       true,
                       autocapitalize: "none",
                       placeholder:    t("devise.passwords.new.email"),
                       autocorrect:    "off",
                       autofocus:      true,
                       aria:           {labelledby: "emailLabel"}

      = f.submit t("devise.passwords.new.send_password_instructions"), class: "btn btn-block btn-primary"

    .text-center
      = link_to t('devise.shared.links.sign_in'), new_session_path(resource_name)