Skip to content

Commit

Permalink
Merge pull request #2872 from DFE-Digital/fix-dfe-sign-in-page
Browse files Browse the repository at this point in the history
Fix DfE identity sign in page
  • Loading branch information
asmega authored Jun 18, 2024
2 parents 51ef8c7 + 6f8d5d5 commit 765b6a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
35 changes: 17 additions & 18 deletions app/views/claims/sign_in_or_continue.html.erb
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<%= link_to "Back", landing_page_path, class: "govuk-back-link" %>
<main class="govuk-main-wrapper govuk-main-wrapper--auto-spacing" id="main-content">
<% @backlink_path = landing_page_path %>

<% if @form.errors.any? %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<% if @form.errors.any? %>
<%= render(
"shared/error_summary",
instance: @form,
errored_field_id_overrides: { details_check: "claim_details_check_true" }
) %>
<% end %>
<%= render(
"shared/error_summary",
instance: @form,
errored_field_id_overrides: { details_check: "claim_details_check_true" }) %>
</div>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds govuk-body">
<% if @form.signed_in_with_dfe_identity? %>
<%= render partial: "confirm_detail", locals: { form: @form } %>
<% else %>
<%= render partial: "sign_in_or_continue" %>
<% end %>
</div>
<% end %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds govuk-body">
<% if @form.signed_in_with_dfe_identity? %>
<%= render partial: "confirm_detail", locals: { form: @form } %>
<% else %>
<%= render partial: "sign_in_or_continue" %>
<% end %>
</div>
</main>
</div>
2 changes: 1 addition & 1 deletion app/views/shared/_backlink.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% if @backlink_path.present? %>
<%= link_to 'Back', @backlink_path, class: "govuk-back-link", id: "backlink" %>
<%= govuk_back_link href: @backlink_path %>
<% end %>

0 comments on commit 765b6a2

Please sign in to comment.