21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-01 16:30:49 +02:00
chexpire/app/views/devise/passwords/edit.html.erb
2018-08-02 00:29:53 +02:00

19 lines
801 B
Plaintext

<% # Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr> %>
<% # License: GNU AGPL-3+ (see full text in LICENSE file) %>
<%= devise_form_container do %>
<h2><%= t('.change_your_password') %></h2>
<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<%= f.hidden_field :reset_password_token %>
<%= f.input :password, label: t('.new_password'), autocomplete: "off",
hint: t('devise.shared.minimum_password_length', count: @minimum_password_length) %>
<%= f.input :password_confirmation, label: t('.confirm_new_password'), autocomplete: "off" %>
<%= f.button :submit, t('.change_my_password'), class: "btn-primary" %>
<% end %>
<%= render "devise/shared/links" %>
<% end %>