Skip to content

Commit

Permalink
Fix dfe sign in bypass form
Browse files Browse the repository at this point in the history
Seems like the rails 8 upgrade broke this form used on review apps,
this commit fixes the field names so nested parameters are sent to the
controller as expected.
  • Loading branch information
rjlynch committed Dec 16, 2024
1 parent 2a526d0 commit 70bd78d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
) do |f| %>
<div class="govuk-form-group">
<%= f.govuk_text_field(
"[extra][raw_info][organisation][ukprn]",
"extra[raw_info][organisation][ukprn]",
label: { text: "UKPRN" },
value: journey_session.answers.claim.school.ukprn
) %>

<%= f.govuk_text_field(
"[extra][raw_info][organisation][id]",
"extra[raw_info][organisation][id]",
label: { text: "Organisation id" },
value: "12345678"
) %>

<%= f.govuk_text_field(
"[extra][raw_info][organisation][name]",
"extra[raw_info][organisation][name]",
label: { text: "Organisation id" },
value: "Springfield Elementary School"
) %>
Expand All @@ -42,25 +42,25 @@
) %>

<%= f.govuk_text_field(
"[info][first_name]",
"info[first_name]",
label: { text: "First name" },
value: "Seymoure"
) %>

<%= f.govuk_text_field(
"[info][last_name]",
"info[last_name]",
label: { text: "Last name" },
value: "Skinner"
) %>

<%= f.govuk_text_field(
"[info][email]",
"info[email]",
label: { text: "Email" },
value: "[email protected]"
) %>

<%= f.govuk_text_field(
"[roles][0]",
"roles[0]",
label: { text: "Role 1" },
value: Journeys::FurtherEducationPayments::Provider::CLAIM_VERIFIER_DFE_SIGN_IN_ROLE_CODE
) %>
Expand Down

0 comments on commit 70bd78d

Please sign in to comment.