mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.3 KiB
28 lines
1.3 KiB
<div class="max-w-lg mx-auto px-2">
|
|
<h1 class="text-4xl font-bold text-center mt-8">
|
|
<%= t('change_your_password') %>
|
|
</h1>
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: 'space-y-6' }) do |f| %>
|
|
<div class="space-y-2">
|
|
<%= render 'devise/shared/error_messages', resource: %>
|
|
<%= f.hidden_field :reset_password_token %>
|
|
<div class="form-control">
|
|
<%= f.label :password, t('new_password'), class: 'label' %>
|
|
<%= f.password_field :password, autofocus: true, autocomplete: 'new-password', class: 'base-input' %>
|
|
<% if @minimum_password_length %>
|
|
<label class="label">
|
|
<span class="label-text">(<%= t('minimum_password_length_characters_minimum', minimum_password_length: @minimum_password_length) %>)</span>
|
|
</label>
|
|
<% end %>
|
|
</div>
|
|
<div class="form-control">
|
|
<%= f.label :password_confirmation, t('confirm_new_password'), class: 'label' %>
|
|
<%= f.password_field :password_confirmation, autocomplete: 'new-password', class: 'base-input' %>
|
|
</div>
|
|
</div>
|
|
<div class="form-control">
|
|
<%= f.button button_title(title: t('change_my_password'), disabled_with: t('changing_password')), class: 'base-button' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|