|
26 | 26 |
|
27 | 27 | <div class="govuk-grid-row"> |
28 | 28 | <div class="govuk-grid-column-two-thirds-from-desktop"> |
29 | | - <govuk-summary-card data-testid="request"> |
30 | | - <govuk-summary-card-title> |
31 | | - Details of the record |
32 | | - </govuk-summary-card-title> |
33 | | - <govuk-summary-card-actions> |
34 | | - <govuk-summary-card-action href="@changeLink" data-testid="change-link">Change</govuk-summary-card-action> |
35 | | - </govuk-summary-card-actions> |
36 | | - <govuk-summary-list> |
37 | | - <govuk-summary-list-row> |
38 | | - <govuk-summary-list-row-key>First name</govuk-summary-list-row-key> |
39 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.FirstName</govuk-summary-list-row-value> |
40 | | - </govuk-summary-list-row> |
41 | | - <govuk-summary-list-row> |
42 | | - <govuk-summary-list-row-key>Middle name</govuk-summary-list-row-key> |
43 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.MiddleName</govuk-summary-list-row-value> |
44 | | - </govuk-summary-list-row> |
45 | | - <govuk-summary-list-row> |
46 | | - <govuk-summary-list-row-key>Last name</govuk-summary-list-row-key> |
47 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.LastName</govuk-summary-list-row-value> |
48 | | - </govuk-summary-list-row> |
49 | | - <govuk-summary-list-row> |
50 | | - <govuk-summary-list-row-key>Date of birth</govuk-summary-list-row-key> |
51 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.DateOfBirth?.ToString(UiDefaults.DateOnlyDisplayFormat)</govuk-summary-list-row-value> |
52 | | - </govuk-summary-list-row> |
53 | | - <govuk-summary-list-row> |
54 | | - <govuk-summary-list-row-key>Email</govuk-summary-list-row-key> |
55 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.EmailAddress</govuk-summary-list-row-value> |
56 | | - </govuk-summary-list-row> |
57 | | - <govuk-summary-list-row> |
58 | | - <govuk-summary-list-row-key>National Insurance number</govuk-summary-list-row-key> |
59 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.NationalInsuranceNumber</govuk-summary-list-row-value> |
60 | | - </govuk-summary-list-row> |
61 | | - <govuk-summary-list-row> |
62 | | - <govuk-summary-list-row-key>Gender</govuk-summary-list-row-key> |
63 | | - <govuk-summary-list-row-value use-empty-fallback>@Model.Gender?.GetDisplayName()</govuk-summary-list-row-value> |
64 | | - </govuk-summary-list-row> |
65 | | - @if (Model.Trn is not null) |
| 29 | + |
| 30 | + |
| 31 | + <govuk-summary-list> |
| 32 | + <govuk-summary-list-row> |
| 33 | + <govuk-summary-list-row-key>First name</govuk-summary-list-row-key> |
| 34 | + <govuk-summary-list-row-value use-empty-fallback>@Model.FirstName</govuk-summary-list-row-value> |
| 35 | + </govuk-summary-list-row> |
| 36 | + <govuk-summary-list-row> |
| 37 | + <govuk-summary-list-row-key>Middle name</govuk-summary-list-row-key> |
| 38 | + <govuk-summary-list-row-value use-empty-fallback>@Model.MiddleName</govuk-summary-list-row-value> |
| 39 | + </govuk-summary-list-row> |
| 40 | + <govuk-summary-list-row> |
| 41 | + <govuk-summary-list-row-key>Last name</govuk-summary-list-row-key> |
| 42 | + <govuk-summary-list-row-value use-empty-fallback>@Model.LastName</govuk-summary-list-row-value> |
| 43 | + </govuk-summary-list-row> |
| 44 | + <govuk-summary-list-row> |
| 45 | + <govuk-summary-list-row-key>Date of birth</govuk-summary-list-row-key> |
| 46 | + <govuk-summary-list-row-value use-empty-fallback>@Model.DateOfBirth?.ToString(UiDefaults.DateOnlyDisplayFormat)</govuk-summary-list-row-value> |
| 47 | + @if (Model.IsDateOfBirthChangeable) |
| 48 | + { |
| 49 | + <govuk-summary-list-row-actions> |
| 50 | + <govuk-summary-list-row-action href="@changeLink" data-testid="dob-change-link" visually-hidden-text="date of birth">Change</govuk-summary-list-row-action> |
| 51 | + </govuk-summary-list-row-actions> |
| 52 | + } |
| 53 | + </govuk-summary-list-row> |
| 54 | + <govuk-summary-list-row> |
| 55 | + <govuk-summary-list-row-key>Email address</govuk-summary-list-row-key> |
| 56 | + <govuk-summary-list-row-value use-empty-fallback>@Model.EmailAddress</govuk-summary-list-row-value> |
| 57 | + @if (Model.IsEmailAddressChangeable) |
| 58 | + { |
| 59 | + <govuk-summary-list-row-actions> |
| 60 | + <govuk-summary-list-row-action href="@changeLink" data-testid="email-change-link" visually-hidden-text="email address">Change</govuk-summary-list-row-action> |
| 61 | + </govuk-summary-list-row-actions> |
| 62 | + } |
| 63 | + </govuk-summary-list-row> |
| 64 | + <govuk-summary-list-row> |
| 65 | + <govuk-summary-list-row-key>National Insurance number</govuk-summary-list-row-key> |
| 66 | + <govuk-summary-list-row-value use-empty-fallback>@Model.NationalInsuranceNumber</govuk-summary-list-row-value> |
| 67 | + @if (Model.IsNationalInsuranceNumberChangeable) |
| 68 | + { |
| 69 | + <govuk-summary-list-row-actions> |
| 70 | + <govuk-summary-list-row-action href="@changeLink" data-testid="ni-change-link" visually-hidden-text="national insurance number">Change</govuk-summary-list-row-action> |
| 71 | + </govuk-summary-list-row-actions> |
| 72 | + } |
| 73 | + </govuk-summary-list-row> |
| 74 | + <govuk-summary-list-row> |
| 75 | + <govuk-summary-list-row-key>Gender</govuk-summary-list-row-key> |
| 76 | + <govuk-summary-list-row-value use-empty-fallback>@Model.Gender?.GetDisplayName()</govuk-summary-list-row-value> |
| 77 | + @if (Model.IsGenderChangeable) |
66 | 78 | { |
67 | | - <govuk-summary-list-row> |
68 | | - <govuk-summary-list-row-key>TRN</govuk-summary-list-row-key> |
69 | | - <govuk-summary-list-row-value>@Model.Trn</govuk-summary-list-row-value> |
70 | | - </govuk-summary-list-row> |
| 79 | + <govuk-summary-list-row-actions> |
| 80 | + <govuk-summary-list-row-action href="@changeLink" data-testid="gender-change-link" visually-hidden-text="gender">Change</govuk-summary-list-row-action> |
| 81 | + </govuk-summary-list-row-actions> |
71 | 82 | } |
| 83 | + </govuk-summary-list-row> |
| 84 | + @if (Model.Trn is not null) |
| 85 | + { |
| 86 | + <govuk-summary-list-row> |
| 87 | + <govuk-summary-list-row-key>TRN</govuk-summary-list-row-key> |
| 88 | + <govuk-summary-list-row-value>@Model.Trn</govuk-summary-list-row-value> |
| 89 | + <govuk-summary-list-row-actions> |
| 90 | + <govuk-summary-list-row-action href="@changeLink" data-testid="change-link" visually-hidden-text="trn">Change</govuk-summary-list-row-action> |
| 91 | + </govuk-summary-list-row-actions> |
| 92 | + </govuk-summary-list-row> |
| 93 | + } |
| 94 | + @if (!Model.CreatingNewRecord) |
| 95 | + { |
72 | 96 | <govuk-summary-list-row> |
73 | 97 | <govuk-summary-list-row-key>Comments</govuk-summary-list-row-key> |
74 | 98 | <govuk-summary-list-row-value use-empty-fallback>@Model.Comments</govuk-summary-list-row-value> |
| 99 | + <govuk-summary-list-row-actions> |
| 100 | + <govuk-summary-list-row-action href="@changeLink" data-testid="comments-change-link" visually-hidden-text="comments">Change</govuk-summary-list-row-action> |
| 101 | + </govuk-summary-list-row-actions> |
75 | 102 | </govuk-summary-list-row> |
76 | | - </govuk-summary-list> |
77 | | - </govuk-summary-card> |
| 103 | + } |
| 104 | + </govuk-summary-list> |
| 105 | + |
78 | 106 | <div class="govuk-button-group"> |
79 | 107 | <govuk-button type="submit" data-testid="submit">@confirmButtonLabel</govuk-button> |
80 | 108 | <govuk-button type="submit" formaction="@LinkGenerator.SupportTasks.NpqTrnRequests.Resolve.CheckAnswersCancel(Model.SupportTaskReference, Model.JourneyInstance!.InstanceId)" class="govuk-button--secondary">Cancel</govuk-button> |
|
0 commit comments