.container.pageHeading %h2.pull-left Change your password .container .row .span16 = form_for(resource, :as => resource_name, :url => update_password_url(resource_name), :html => { :method => :put }) do |f| = password_instructions(devise_error_messages!) - if resource.errors.any? %div{ :class => 'alert-message block-message error', :id => 'error_explanation'} %h3== #{pluralize(resource.errors.count, "error")} prohibited this user from being saved: %ul - resource.errors.full_messages.each do |msg| %li= msg %div{:style => "margin:0;padding:0;display:inline"} = f.hidden_field :reset_password_token %fieldset .clearfix = f.label :password, "New password" .input = f.password_field :password, :value => '', :autocomplete => 'off' .clearfix = f.label :password_confirmation, "Confirm new password" .input = f.password_field :password_confirmation, :autocomplete => 'off' .actions = f.submit "Change my password", :class => "btn primary"