<%= form_for @reset_user, :url => kryptonite_password_reset_path do |f| %> <% if @reset_user.errors.any? %>

<% @reset_user.errors.keys.each do |key| %> <%= (key.to_s.humanize + " ") unless key == :base %> <%= @reset_user.errors[key].first %> <% end %>

<% end %> <% if flash[:warning] %>

<%= flash[:warning] %>

<% end %> <% if flash[:notice] %>

<%= flash[:notice] %>

<% end %> <%= hidden_field_tag :token, params[:token] %>

<%= f.label :password, "Password:" %> <%= f.password_field :password, :class => "kryptoniteTextField" %>

<%= f.label :password_confirmation, "Confirm password:" %> <%= f.password_field :password_confirmation, :class => "kryptoniteTextField" %>

<%= f.submit "Reset password", :class => "kryptoniteSubmit" %>

<% end %>