4 changed files with 15 additions and 35 deletions
@ -1,11 +0,0 @@ |
|||||||
<% content_for :title, "Your invitation link has expired" %> |
|
||||||
|
|
||||||
<div class="govuk-grid-row"> |
|
||||||
<div class="govuk-grid-column-two-thirds"> |
|
||||||
<h1 class="govuk-heading-l"> |
|
||||||
<%= content_for(:title) %> |
|
||||||
</h1> |
|
||||||
|
|
||||||
<p class="govuk-body">Contact the helpdesk to request a new one.</p> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
@ -1,29 +1,20 @@ |
|||||||
<% content_for :title, "Resend invitation link" %> |
<% content_for :title, "Expired link" %> |
||||||
|
|
||||||
<% content_for :before_content do %> |
|
||||||
<%= govuk_back_link(href: :back) %> |
|
||||||
<% end %> |
|
||||||
|
|
||||||
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> |
|
||||||
<div class="govuk-grid-row"> |
|
||||||
<div class="govuk-grid-column-two-thirds"> |
|
||||||
<%= f.govuk_error_summary %> |
|
||||||
|
|
||||||
|
<div class="govuk-grid-row"> |
||||||
|
<div class="govuk-grid-column-full"> |
||||||
<h1 class="govuk-heading-l"> |
<h1 class="govuk-heading-l"> |
||||||
<%= content_for(:title) %> |
<%= content_for(:title) %> |
||||||
</h1> |
</h1> |
||||||
|
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> |
||||||
|
|
||||||
|
<%= f.govuk_error_summary %> |
||||||
|
|
||||||
<p class="govuk-body">Enter your email address to get a new invitation link.</p> |
<p class="govuk-body">For security reasons, your join link expired - get another one using the button below (valid for 3 hours).</p> |
||||||
|
|
||||||
<%= f.govuk_email_field :email, |
|
||||||
label: { text: "Email address" }, |
|
||||||
autocomplete: "email", |
|
||||||
spellcheck: "false", |
|
||||||
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> |
|
||||||
|
|
||||||
<%= f.govuk_submit "Send email" %> |
<%= f.hidden_field :email, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %> |
||||||
</div> |
<%= f.govuk_submit "Get a new join link" %> |
||||||
</div> |
<% end %> |
||||||
<% end %> |
|
||||||
|
|
||||||
<%= render "devise/shared/links" %> |
</div> |
||||||
|
</div> |
||||||
|
|||||||
Loading…
Reference in new issue