Files
astuto/app/views/devise/passwords/edit.html.erb
Riccardo Graziosi 10f06c9760 Bump ruby to 3.0.6 (#218)
* Bump ruby to 2.7.8
* Bump listen to 3.5.1 (remove dependency on ruby_dep)
* Bump ruby to 3.0.6
* Fix I18n.translate arguments: from hash to keyword arguments
2023-05-09 09:32:18 +02:00

37 lines
1.2 KiB
Plaintext

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<h2><%= t('common.forms.auth.change_password') %></h2>
<%= render "devise/shared/error_messages", resource: resource %>
<%= f.hidden_field :reset_password_token %>
<div class="form-group">
<%= f.label :password, class: "sr-only" %>
<%= f.password_field :password,
autofocus: true,
autocomplete: "new-password",
placeholder: t('common.forms.auth.new_password'),
class: "form-control" %>
<% if @minimum_password_length %>
<small id="passwordHelp" class="form-text text-muted">
(<%= t('common.forms.auth.password_help', count: @minimum_password_length) %>)
</small>
<% end %>
</div>
<div class="form-group">
<%= f.label :password_confirmation, class: "sr-only" %>
<%= f.password_field :password_confirmation,
autocomplete: "new-password",
placeholder: t('common.forms.auth.new_password_confirmation'),
class: "form-control" %>
</div>
<div class="actions">
<%= f.submit t('common.forms.auth.change_password'), class: "btn btn-dark btn-primary" %>
</div>
<% end %>
<%= render "devise/shared/links" %>