|
3 | 3 | @model SupervisorDelegateViewModel; |
4 | 4 | @inject IConfiguration Configuration; |
5 | 5 | @{ |
6 | | - var errorHasOccurred = !ViewData.ModelState.IsValid; |
7 | | - ViewData["Application"] = "Supervisor"; |
8 | | - ViewData["Title"] = "Confirm Nominated supervisor"; |
9 | | - ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/Supervisor/MyStaff"; |
10 | | - ViewData["HeaderPathName"] = "My Staff"; |
| 6 | + var errorHasOccurred = !ViewData.ModelState.IsValid; |
| 7 | + ViewData["Application"] = "Supervisor"; |
| 8 | + ViewData["Title"] = "Confirm Nominated supervisor"; |
| 9 | + ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/Supervisor/MyStaff"; |
| 10 | + ViewData["HeaderPathName"] = "My Staff"; |
11 | 11 | } |
12 | 12 |
|
13 | 13 | @section NavMenuItems { |
14 | | - <partial name="Shared/_NavMenuItems" /> |
| 14 | + <partial name="Shared/_NavMenuItems" /> |
15 | 15 | } |
16 | 16 |
|
17 | | - <div class="nhsuk-grid-row"> |
| 17 | +<div class="nhsuk-grid-row"> |
18 | 18 | <div class="nhsuk-grid-column-full"> |
19 | | - @if (errorHasOccurred) |
20 | | - { |
21 | | - <vc:error-summary order-of-property-names="@(new[] { nameof(Model.ActionConfirmed) })" /> |
22 | | - } |
23 | | - <h1 id="page-heading">@ViewData["Title"]</h1> |
24 | | - <div class="nhsuk-grid-row"> |
25 | | - <div class="nhsuk-grid-column-one-quarter nhsuk-heading-l"> |
26 | | - <div class="nhsuk-u-font-weight-bold"> |
27 | | - Staff member: |
| 19 | + @if (errorHasOccurred) |
| 20 | + { |
| 21 | + <vc:error-summary order-of-property-names="@(new[] { nameof(Model.ActionConfirmed) })" /> |
| 22 | + } |
| 23 | + <h1 id="page-heading">@ViewData["Title"]</h1> |
| 24 | + <div class="nhsuk-grid-row"> |
| 25 | + <div class="nhsuk-grid-column-one-quarter nhsuk-heading-l"> |
| 26 | + <div class="nhsuk-u-font-weight-bold"> |
| 27 | + Staff member: |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + <div class="nhsuk-grid-column-three-quarters nhsuk-heading-l nhsuk-u-font-weight-normal"> |
| 31 | + @Model.FirstName @Model.LastName (@Model.DelegateEmail) |
| 32 | + </div> |
28 | 33 | </div> |
29 | | - </div> |
30 | | - <div class="nhsuk-grid-column-three-quarters nhsuk-heading-l nhsuk-u-font-weight-normal"> |
31 | | - @Model.FirstName @Model.LastName (@Model.DelegateEmail) |
32 | | - </div> |
33 | | - </div> |
34 | | - <p class="nhsuk-body-m">By promoting this member of staff to the Nominated supervisor role, you are confirming their competence to assess the capability of others.</p> |
35 | | - <p>Once the Nominated supervisor role has been assigned, it can only be removed by a Centre Manager or Clinical Centre Manager.</p> |
36 | | - <form method="post" asp-controller="Supervisor"> |
37 | | - <div class="nhsuk-checkboxes__item"> |
38 | | - <vc:single-checkbox asp-for="@nameof(Model.ActionConfirmed)" |
39 | | - label="I am sure that I wish to promote @Model.FirstName @Model.LastName to the Nominated supervisor role" |
40 | | - hint-text="I understand that the Nominated supervisor role can only be removed by a Centre Manager or Clinical Centre Manager." /> |
41 | | - </div> |
42 | | - <button type="submit" class="nhsuk-button nhsuk-u-margin-top-4" asp-action="ConfirmNominateSupervisor"> |
43 | | - Confirm |
44 | | - </button> |
45 | | - @Html.HiddenFor(m => m.Id) |
46 | | - @Html.HiddenFor(m => m.FirstName) |
47 | | - @Html.HiddenFor(m => m.LastName) |
48 | | - @Html.HiddenFor(m => m.DelegateEmail) |
49 | | - @Html.HiddenFor(m => m.CandidateAssessmentCount) |
50 | | - @Html.HiddenFor(m => m.ReturnPageQuery) |
51 | | - </form> |
| 34 | + <p class="nhsuk-body-m">By promoting this member of staff to the Nominated supervisor role, you are confirming their competence to assess the capability of others.</p> |
| 35 | + <p>Once the Nominated supervisor role has been assigned, it can only be removed by a Centre Manager or Clinical Centre Manager.</p> |
| 36 | + <form method="post" asp-controller="Supervisor"> |
| 37 | + <div class="nhsuk-checkboxes__item"> |
| 38 | + <vc:single-checkbox asp-for="@nameof(Model.ActionConfirmed)" |
| 39 | + label="I am sure that I wish to promote @Model.FirstName @Model.LastName to the Nominated supervisor role" |
| 40 | + hint-text="I understand that the Nominated supervisor role can only be removed by a Centre Manager or Clinical Centre Manager." /> |
| 41 | + </div> |
| 42 | + @if(Model.SelfAssessmentCategory == 0) |
| 43 | + { |
| 44 | + <vc:select-list asp-for="SelfAssessmentCategory" |
| 45 | + label="Self assessment category (optional)" |
| 46 | + value="@Model.SelfAssessmentCategory.ToString()" |
| 47 | + hint-text="Limits the nominated supervisor to self assessments in a particular category." |
| 48 | + required="false" |
| 49 | + css-class="nhsuk-u-width-one-half" |
| 50 | + default-option="" |
| 51 | + select-list-options="@Model.SelfAssessmentCategories" /> |
| 52 | + } |
| 53 | + <button type="submit" class="nhsuk-button nhsuk-u-margin-top-4" asp-action="ConfirmNominateSupervisor"> |
| 54 | + Confirm |
| 55 | + </button> |
| 56 | + @Html.HiddenFor(m => m.Id) |
| 57 | + @Html.HiddenFor(m => m.FirstName) |
| 58 | + @Html.HiddenFor(m => m.LastName) |
| 59 | + @Html.HiddenFor(m => m.DelegateEmail) |
| 60 | + @Html.HiddenFor(m => m.CandidateAssessmentCount) |
| 61 | + @Html.HiddenFor(m => m.ReturnPageQuery) |
| 62 | + @Html.HiddenFor(m => m.SelfAssessmentCategories) |
| 63 | + </form> |
52 | 64 |
|
53 | | - <vc:cancel-link-with-return-page-query asp-controller="Supervisor" asp-action="MyStaffList" return-page-query="@Model.ReturnPageQuery" /> |
54 | | - </div> |
| 65 | + <vc:cancel-link-with-return-page-query asp-controller="Supervisor" asp-action="MyStaffList" return-page-query="@Model.ReturnPageQuery" /> |
| 66 | + </div> |
55 | 67 | </div> |
0 commit comments