|
20 | 20 |
|
21 | 21 | <div class="govuk-grid-row"> |
22 | 22 | <div class="govuk-grid-column-two-thirds-from-desktop"> |
23 | | - <govuk-summary-card data-testid="request"> |
24 | | - <govuk-summary-card-title> |
25 | | - Details of the merged record |
26 | | - </govuk-summary-card-title> |
27 | | - <govuk-summary-card-actions> |
28 | | - <govuk-summary-card-action href="@changeLink" data-testid="change-link">Change</govuk-summary-card-action> |
29 | | - </govuk-summary-card-actions> |
30 | | - <govuk-summary-list> |
31 | | - <govuk-summary-list-row> |
32 | | - <govuk-summary-list-row-key>First name</govuk-summary-list-row-key> |
33 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.FirstName</govuk-summary-list-row-value> |
34 | | - </govuk-summary-list-row> |
35 | | - <govuk-summary-list-row> |
36 | | - <govuk-summary-list-row-key>Last name</govuk-summary-list-row-key> |
37 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.LastName</govuk-summary-list-row-value> |
38 | | - </govuk-summary-list-row> |
39 | | - <govuk-summary-list-row> |
40 | | - <govuk-summary-list-row-key>TRN</govuk-summary-list-row-key> |
41 | | - <govuk-summary-list-row-value>@Model.Trn</govuk-summary-list-row-value> |
42 | | - </govuk-summary-list-row> |
43 | | - <govuk-summary-list-row> |
44 | | - <govuk-summary-list-row-key>Date of birth</govuk-summary-list-row-key> |
45 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.DateOfBirth?.ToString(UiDefaults.DateOnlyDisplayFormat)</govuk-summary-list-row-value> |
46 | | - </govuk-summary-list-row> |
47 | | - <govuk-summary-list-row> |
48 | | - <govuk-summary-list-row-key>NI number</govuk-summary-list-row-key> |
49 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.NationalInsuranceNumber</govuk-summary-list-row-value> |
50 | | - </govuk-summary-list-row> |
51 | | - <govuk-summary-list-row> |
52 | | - <govuk-summary-list-row-key>Evidence</govuk-summary-list-row-key> |
53 | | - <govuk-summary-list-row-value use-empty-fallback> |
54 | | - <vc:evidence-file-link evidence-file="@Model.EvidenceFile" /> |
55 | | - </govuk-summary-list-row-value> |
56 | | - </govuk-summary-list-row> |
57 | | - </govuk-summary-list> |
58 | | - </govuk-summary-card> |
| 23 | + <govuk-summary-list> |
| 24 | + <govuk-summary-list-row> |
| 25 | + <govuk-summary-list-row-key>First name</govuk-summary-list-row-key> |
| 26 | + <govuk-summary-list-row-value use-empty-fallback>@Model.FirstName</govuk-summary-list-row-value> |
| 27 | + @if (Model.IsFirstNameChangeable) |
| 28 | + { |
| 29 | + <govuk-summary-list-row-actions> |
| 30 | + <govuk-summary-list-row-action href="@changeLink" data-testid="firstname-change-link" visually-hidden-text="first name">Change</govuk-summary-list-row-action> |
| 31 | + </govuk-summary-list-row-actions> |
| 32 | + } |
| 33 | + </govuk-summary-list-row> |
| 34 | + <govuk-summary-list-row> |
| 35 | + <govuk-summary-list-row-key>Last name</govuk-summary-list-row-key> |
| 36 | + <govuk-summary-list-row-value use-empty-fallback>@Model.LastName</govuk-summary-list-row-value> |
| 37 | + @if (Model.IsLastNameChangeable) |
| 38 | + { |
| 39 | + <govuk-summary-list-row-actions> |
| 40 | + <govuk-summary-list-row-action href="@changeLink" data-testid="lastname-change-link" visually-hidden-text="last name">Change</govuk-summary-list-row-action> |
| 41 | + </govuk-summary-list-row-actions> |
| 42 | + } |
| 43 | + </govuk-summary-list-row> |
| 44 | + <govuk-summary-list-row> |
| 45 | + <govuk-summary-list-row-key>TRN</govuk-summary-list-row-key> |
| 46 | + <govuk-summary-list-row-value>@Model.Trn</govuk-summary-list-row-value> |
| 47 | + </govuk-summary-list-row> |
| 48 | + <govuk-summary-list-row> |
| 49 | + <govuk-summary-list-row-key>Date of birth</govuk-summary-list-row-key> |
| 50 | + <govuk-summary-list-row-value use-empty-fallback>@Model.DateOfBirth?.ToString(UiDefaults.DateOnlyDisplayFormat)</govuk-summary-list-row-value> |
| 51 | + @if (Model.IsDateOfBirthChangeable) |
| 52 | + { |
| 53 | + <govuk-summary-list-row-actions> |
| 54 | + <govuk-summary-list-row-action href="@changeLink" data-testid="dob-change-link" visually-hidden-text="date of birth">Change</govuk-summary-list-row-action> |
| 55 | + </govuk-summary-list-row-actions> |
| 56 | + } |
| 57 | + </govuk-summary-list-row> |
| 58 | + <govuk-summary-list-row> |
| 59 | + <govuk-summary-list-row-key>NI number</govuk-summary-list-row-key> |
| 60 | + <govuk-summary-list-row-value use-empty-fallback>@Model.NationalInsuranceNumber</govuk-summary-list-row-value> |
| 61 | + @if (Model.IsNationalInsuranceNumberChangeable) |
| 62 | + { |
| 63 | + <govuk-summary-list-row-actions> |
| 64 | + <govuk-summary-list-row-action href="@changeLink" data-testid="ni-change-link" visually-hidden-text="national insurance number">Change</govuk-summary-list-row-action> |
| 65 | + </govuk-summary-list-row-actions> |
| 66 | + } |
| 67 | + </govuk-summary-list-row> |
| 68 | + <govuk-summary-list-row> |
| 69 | + <govuk-summary-list-row-key>Evidence</govuk-summary-list-row-key> |
| 70 | + <govuk-summary-list-row-value use-empty-fallback> |
| 71 | + <vc:evidence-file-link evidence-file="@Model.EvidenceFile" /> |
| 72 | + </govuk-summary-list-row-value> |
| 73 | + <govuk-summary-list-row-actions> |
| 74 | + <govuk-summary-list-row-action href="@changeLink" data-testid="evidence-change-link" visually-hidden-text="evidence">Change</govuk-summary-list-row-action> |
| 75 | + </govuk-summary-list-row-actions> |
| 76 | + </govuk-summary-list-row> |
| 77 | + <govuk-summary-list-row> |
| 78 | + <govuk-summary-list-row-key>Comments</govuk-summary-list-row-key> |
| 79 | + <govuk-summary-list-row-value use-empty-fallback>@Model.MergeComments</govuk-summary-list-row-value> |
| 80 | + <govuk-summary-list-row-actions> |
| 81 | + <govuk-summary-list-row-action href="@changeLink" data-testid="comments-change-link" visually-hidden-text="comments">Change</govuk-summary-list-row-action> |
| 82 | + </govuk-summary-list-row-actions> |
| 83 | + </govuk-summary-list-row> |
| 84 | + </govuk-summary-list> |
59 | 85 | <div class="govuk-button-group"> |
60 | 86 | <govuk-button type="submit" data-testid="submit">@confirmButtonLabel</govuk-button> |
61 | 87 | <govuk-button type="submit" formaction="@LinkGenerator.SupportTasks.TeacherPensions.Resolve.CheckAnswersCancel(Model.SupportTaskReference, Model.JourneyInstance!.InstanceId, false)" class="govuk-button--secondary">Cancel</govuk-button> |
|
0 commit comments