-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
) %> | ||
|
@@ -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 | ||
) %> | ||
|