rosa-build/app/views/devise/passwords/new.html.haml

25 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-02-29 16:54:44 +00:00
.wrap
%nav
%a{:href => new_register_request_path}
%p=t("layout.devise.shared_links.sign_up")
/ Top block
%header
.logo
/ Page
%article
%br
%h1= title t('devise.passwords.forgot')
%br
2012-02-29 16:54:44 +00:00
.content
- if resource.errors.present?
.flash
.message.error.forgot
- messages = resource.errors.full_messages.map { |msg| content_tag(:p, msg) }.join.html_safe
= messages
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, :class => "form" }) do |f|
= f.text_field :login, :name => 'user[email]', :class => "registartion-input", :onblur => "if(this.value==''){this.value='#{t('activerecord.attributes.user.email')}';this.className='registartion-input';} else{this.className='registartion-input-no-focus';};", :onfocus => "if(this.value=='#{t('activerecord.attributes.user.email')}'){this.value='';this.className='registartion-input-focus';};", :value => t('activerecord.attributes.user.email')
2012-02-29 16:54:44 +00:00
.both
%br
=f.submit t("devise.passwords.send"), :class => 'button', :id => 'btnLogin'