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.
34 lines
979 B
34 lines
979 B
3 years ago
|
<% content_for :title, "Reset your password" %>
|
||
|
|
||
|
<% content_for :before_content do %>
|
||
|
<%= govuk_back_link(
|
||
|
text: 'Back',
|
||
|
href: :back,
|
||
|
) %>
|
||
|
<% end %>
|
||
|
|
||
3 years ago
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
||
3 years ago
|
<%= f.hidden_field :reset_password_token %>
|
||
|
<div class="govuk-grid-row">
|
||
|
<div class="govuk-grid-column-two-thirds">
|
||
3 years ago
|
<%= f.govuk_error_summary %>
|
||
|
|
||
3 years ago
|
<h1 class="govuk-heading-l">
|
||
|
<%= content_for(:title) %>
|
||
|
</h1>
|
||
|
|
||
|
<%= f.govuk_password_field :password,
|
||
|
label: { text: "New password" },
|
||
|
hint: @minimum_password_length ? { text: "Your password must be at least #{@minimum_password_length} characters and hard to guess." } : nil,
|
||
|
autocomplete: "new-password"
|
||
|
%>
|
||
|
|
||
|
<%= f.govuk_password_field :password_confirmation,
|
||
|
label: { text: "Confirm new password" }
|
||
|
%>
|
||
|
|
||
|
<%= f.govuk_submit "Update" %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|