2012-03-01 16:05:00 +00:00
|
|
|
.wrap
|
|
|
|
%nav
|
|
|
|
%a{:href => new_register_request_path}
|
|
|
|
%p=t("layout.devise.shared_links.sign_up")
|
|
|
|
%header
|
|
|
|
.logo
|
|
|
|
%article
|
|
|
|
%br
|
|
|
|
%h1= title t('devise.passwords.edit')
|
|
|
|
%br
|
|
|
|
.content
|
2012-03-02 12:27:38 +00:00
|
|
|
- password_error, reset_password_token_error = getDeviseErrors(:password, :reset_password_token)
|
2011-03-31 00:10:23 +01:00
|
|
|
|
|
|
|
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, :class => "form" }) do |f|
|
|
|
|
= f.hidden_field :reset_password_token
|
2012-03-01 16:05:00 +00:00
|
|
|
.left.first=t('activerecord.attributes.user.password')
|
|
|
|
.right.first
|
2012-04-10 18:12:30 +01:00
|
|
|
= f.password_field :password, :id => 'password', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}"
|
2012-03-01 16:05:00 +00:00
|
|
|
.both
|
|
|
|
.left=t('activerecord.attributes.user.password_confirm')
|
|
|
|
.right
|
2012-04-10 18:12:30 +01:00
|
|
|
= f.password_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}"
|
2012-03-01 16:05:00 +00:00
|
|
|
.both
|
|
|
|
%br
|
|
|
|
=f.submit t("devise.passwords.edit_button"), :class => 'button', :id => 'btnLogin'
|
2012-03-02 12:27:38 +00:00
|
|
|
=showDeviseHintError(:password, password_error, 'reset')
|
|
|
|
|