|
41 | 41 | } |
42 | 42 |
|
43 | 43 | @section mobilebacklink |
44 | | -{ |
| 44 | + { |
45 | 45 | <p class="nhsuk-breadcrumb__back"> |
46 | 46 | <a class="nhsuk-breadcrumb__backlink" asp-action="SelfAssessment" |
47 | 47 | asp-route-selfAssessmentId="@Model.SelfAssessment.Id"> |
|
64 | 64 | view-data="@(new ViewDataDictionary(ViewData) { { "IsSupervisorResultsReviewed", Model.SelfAssessment.IsSupervisorResultsReviewed } })" /> |
65 | 65 | </div> |
66 | 66 | } |
| 67 | + <partial name="_OverviewActionButtons.cshtml" model=Model /> |
| 68 | + @if ((competencyQuestionsSummary == competencyVerifiedSummary) && (Model.NumberOfSelfAssessedOptionalCompetencies <= Model.SelfAssessment.MinimumOptionalCompetencies)) |
| 69 | + { |
| 70 | + <div class="nhsuk-warning-callout"> |
| 71 | + <h3 class="nhsuk-warning-callout__label"> |
| 72 | + <span role="text"> |
| 73 | + <span class="nhsuk-u-visually-hidden">Important: </span> |
| 74 | + You need to add optional @(Model.VocabPlural().ToLower()) |
| 75 | + </span> |
| 76 | + </h3> |
| 77 | + <p> |
| 78 | + Your self assessment does not contain enough optional @(Model.VocabPlural().ToLower()) to request sign off. |
| 79 | + Go to Manage optional @(Model.VocabPlural().ToLower()) to choose the optional @(Model.VocabPlural().ToLower()) that you wish to include. |
| 80 | + </p> |
| 81 | + </div> |
| 82 | + } |
67 | 83 | <partial name="SelfAssessments/_SearchSelfAssessmentOverview" |
68 | 84 | model="@Model.SearchViewModel" |
69 | 85 | view-data="@(new ViewDataDictionary(ViewData) { { "parent", Model } })" /> |
70 | | - <partial name="_OverviewActionButtons.cshtml" model=Model /> |
71 | 86 | <p><span role="alert">@Model.CompetencyGroups.Sum(g => g.Count()) matching @Model.VocabPlural().ToLower()</span></p> |
72 | 87 | @if (Model.CompetencyGroups.Any()) |
73 | 88 | { |
|
160 | 175 | <h2>@Model.SelfAssessment.SignOffRoleName Sign-off</h2> |
161 | 176 | <partial name="../../Supervisor/Shared/_SupervisorSignOffSummary.cshtml" model="Model.SupervisorSignOffs" |
162 | 177 | view-data="@(new ViewDataDictionary(ViewData) { { "IsAllCompetencyConfirmed", competencySummaries.Sum(c => (int)c["questionsCount"]) == competencySummaries.Sum(c => (int)c["verifiedCount"]) }})" /> |
163 | | - @if ((Model.AllQuestionsVerifiedOrNotRequired) && (Model.NumberOfSelfAssessedOptionalCompetencies >= Model.SelfAssessment.MinimumOptionalCompetencies)) |
| 178 | + @if (Model.AllQuestionsVerifiedOrNotRequired) |
164 | 179 | { |
165 | 180 | @if (!Model.SupervisorSignOffs.Any()) |
166 | 181 | { |
|
200 | 215 | All required @Model.SelfAssessment.Vocabulary.ToLower() self-assessments must be completed and confirmed, |
201 | 216 | before requesting @Model.SelfAssessment.SignOffRoleName sign off of the @Model.SelfAssessment.Name. |
202 | 217 | </p> |
203 | | - @if (competencyQuestionsSummary == competencyVerifiedSummary) |
204 | | - { |
205 | | - <p class="nhsuk-body-l"> |
206 | | - Your self assessment does not contain enough optional proficiencies to request sign off. |
207 | | - Go to Manage Optional Competencies to choose the optional competencies that you wish to include.. |
208 | | - </p> |
209 | | - } |
210 | 218 | } |
211 | 219 | </div> |
212 | 220 | } |
|
0 commit comments