prellele/trame

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

Summary

Maintainability
Test Coverage

<div class="form-signin">

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: {method: :put}) do |f| %>
    <h2><%= t("devise.passwords.edit.title")%></h2>
    <%= devise_error_messages! %>
    <%= f.hidden_field :reset_password_token %>

      <%= f.password_field :password, placeholder: t('devise.passwords.edit.new_password'), autofocus: true %>

      <%= f.password_field :password_confirmation, placeholder: t('devise.passwords.edit.confirm_new_password') %></div>

    <button class="btn btn-primary" type="submit"><%= t('devise.passwords.edit.change_password') %></button>
    <%= render "devise/shared/links" %>

<% end %>


</div>