- @page_title = _('Forgot your password?') .devise .devise__form .devise__form__wrapper = form_for(resource, as: resource_name, url: user_password_path, html: { method: :post }) do |f| - if resource.errors.any? .error %h2= format(n_('An error prevented the instructions from being sent:', '%i errors prevented the instructions from being sent:', resource.errors.count), nb: resource.errors.count) %ul - resource.errors.full_messages.each do |message| %li= message .field = f.label :email .field-input= f.email_field :email, autofocus: true, autocomplete: 'email' .actions = f.submit _('Send me reset password instructions'), class: 'btn btn--primary btn--block' = render 'elabs/auth/shared/links'