|
2 | 2 | @model ClaimAccountViewModel |
3 | 3 |
|
4 | 4 | @{ |
5 | | - ViewData["Title"] = "Complete registration"; |
| 5 | + ViewData["Title"] = "Complete registration"; |
6 | 6 |
|
7 | | - var routeData = new Dictionary<string, string> { |
| 7 | + var routeData = new Dictionary<string, string> { |
8 | 8 | { "email", Model.Email }, |
9 | 9 | { "code", Model.RegistrationConfirmationHash }, |
10 | 10 | }; |
11 | 11 | } |
12 | 12 |
|
13 | 13 | <div class="nhsuk-grid-row"> |
14 | | - <div class="nhsuk-grid-column-full"> |
| 14 | + <div class="nhsuk-grid-column-full"> |
15 | 15 |
|
16 | | - <h1 class="nhsuk-heading-x1" id="app-page-heading"> |
17 | | - Complete registration |
18 | | - </h1> |
| 16 | + <h1 class="nhsuk-heading-x1" id="app-page-heading"> |
| 17 | + Complete registration |
| 18 | + </h1> |
19 | 19 |
|
20 | | - <p class="nhsuk-body-m">A new delegate record has been created for you by an administrator.</p> |
| 20 | + <p class="nhsuk-body-m">A new delegate record has been created for you by an administrator.</p> |
21 | 21 |
|
22 | | - <partial name="_DelegateRecordSummary" model="@Model" /> |
| 22 | + <partial name="_DelegateRecordSummary" model="@Model" /> |
23 | 23 |
|
24 | | - @if (Model.IdOfUserMatchingEmailIfAny != null) |
25 | | - { |
26 | | - if (Model.UserMatchingEmailIsActive) |
27 | | - { |
28 | | - <p class="nhsuk-body-m"> |
29 | | - A DLS user account is already registered with this email address. If that account belongs to you, you can link this delegate record to your login. |
30 | | - </p> |
| 24 | + @if (Model.IdOfUserMatchingEmailIfAny != null) |
| 25 | + { |
| 26 | + if (Model.UserMatchingEmailIsActive) |
| 27 | + { |
| 28 | + <p class="nhsuk-body-m"> |
| 29 | + A DLS user account is already registered with this email address. If that account belongs to you, you can link this delegate record to your login. |
| 30 | + </p> |
31 | 31 |
|
32 | | - <vc:action-link asp-controller="ClaimAccount" |
33 | | - asp-action="LinkDlsAccount" |
34 | | - asp-all-route-data="@routeData" |
35 | | - link-text="Link this record" /> |
36 | | - } |
37 | | - else |
38 | | - { |
39 | | - <p class="nhsuk-body-m"> |
40 | | - There is already an inactive DLS user account associated with this email address. To request reactivation of the user account and link this delegate record to the account, please contact <a href="mailto:@Model.SupportEmail">@Model.SupportEmail</a>. |
41 | | - </p> |
42 | | - } |
43 | | - } |
44 | | - else |
45 | | - { |
46 | | - <h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-3">I am an existing DLS user</h2> |
47 | | - <p class="nhsuk-hint"> |
48 | | - If you have used DLS in the past (for example, at another organisation or university), we <b>recommend</b> that you link this record to your existing login. |
49 | | - </p> |
| 32 | + <vc:action-link asp-controller="ClaimAccount" |
| 33 | + asp-action="VerifyLinkDlsAccount" |
| 34 | + asp-all-route-data="@routeData" |
| 35 | + link-text="Link this record" /> |
| 36 | + } |
| 37 | + else |
| 38 | + { |
| 39 | + <p class="nhsuk-body-m"> |
| 40 | + There is already an inactive DLS user account associated with this email address. To request reactivation of the user account and link this delegate record to the account, please contact <a href="mailto:@Model.SupportEmail">@Model.SupportEmail</a>. |
| 41 | + </p> |
| 42 | + } |
| 43 | + } |
| 44 | + else |
| 45 | + { |
| 46 | + <h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-3">I am an existing DLS user</h2> |
| 47 | + <p class="nhsuk-hint"> |
| 48 | + If you have used DLS in the past (for example, at another organisation or university), we <b>recommend</b> that you link this record to your existing login. |
| 49 | + </p> |
50 | 50 |
|
51 | | - <vc:action-link asp-controller="ClaimAccount" |
52 | | - asp-action="LinkDlsAccount" |
53 | | - asp-all-route-data="@routeData" |
54 | | - link-text="Use existing login and link delegate record" /> |
| 51 | + <vc:action-link asp-controller="ClaimAccount" |
| 52 | + asp-action="LinkDlsAccount" |
| 53 | + asp-all-route-data="@routeData" |
| 54 | + link-text="Use existing login and link delegate record" /> |
55 | 55 |
|
56 | | - <h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-3">I am a new DLS user</h2> |
57 | | - <p class="nhsuk-hint"> |
58 | | - If you have never accessed DLS before, please activate this delegate record to log in. A new DLS user account will be created. |
59 | | - </p> |
| 56 | + <h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-3">I am a new DLS user</h2> |
| 57 | + <p class="nhsuk-hint"> |
| 58 | + If you have never accessed DLS before, please activate this delegate record to log in. A new DLS user account will be created. |
| 59 | + </p> |
60 | 60 |
|
61 | | - <vc:action-link asp-controller="ClaimAccount" |
62 | | - asp-action="CompleteRegistration" |
63 | | - asp-all-route-data="@routeData" |
64 | | - link-text="Create new login and activate delegate record" /> |
65 | | - } |
66 | | - </div> |
| 61 | + <vc:action-link asp-controller="ClaimAccount" |
| 62 | + asp-action="CompleteRegistration" |
| 63 | + asp-all-route-data="@routeData" |
| 64 | + link-text="Create new login and activate delegate record" /> |
| 65 | + } |
| 66 | + </div> |
67 | 67 | </div> |
0 commit comments