mischa78/boxroom

View on GitHub
app/views/reset_password/edit.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title, t(:reset_password) -%>

<h1><%= content_for :title %></h1>
<%= form_for @user, :url => { :action => 'update' } do |f| %>
  <%= f.error_messages %>
  <p>
    <%= label_tag :password, t(:password) %>:<br>
    <%= f.password_field :password, { :class => 'text_input' } %>
  </p>
  <p>
    <%= label_tag :confirm_password, t(:confirm_password) %>:<br>
    <%= f.password_field :password_confirmation, { :class => 'text_input' } %>
  </p>
  <p>
    <%= f.submit t(:reset_password) %> &nbsp; &mdash; &nbsp;
    <%= link_to t(:back), new_session_path %>
  </p>
<% end %>