estimancy/projestimate

View on GitHub
app/views/devise/passwords/edit.html.erb

Summary

Maintainability
Test Coverage
<h2><%= I18n.t(:label_change_your_password) %></h2>
<hr>

<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
  <%= f.error_notification %>

  <%= f.input :reset_password_token, as: :hidden %>
  <%= f.full_error :reset_password_token %>

  <div class="form-inputs">
    <%= f.input :password, label: I18n.t(:new_password), required: true, autofocus: true %>
    <%= f.input :password_confirmation, label: I18n.t(:confirm_new_password), required: true %>
  </div>

  <div>
    <%= f.button :submit, I18n.t(:label_change_my_password) %>
  </div>
<% end %>

<%= render "devise/shared/links" %>

<div class="login_page">
</div>