diff --git a/DigitalLearningSolutions.Web/Scripts/learningPortal/selfAssessment.ts b/DigitalLearningSolutions.Web/Scripts/learningPortal/selfAssessment.ts index 9f98a2ec71..35325bcf79 100644 --- a/DigitalLearningSolutions.Web/Scripts/learningPortal/selfAssessment.ts +++ b/DigitalLearningSolutions.Web/Scripts/learningPortal/selfAssessment.ts @@ -1,5 +1,3 @@ -import * as Checkboxes from '../checkboxes'; - function onSliderUpdate(inputElement: HTMLInputElement) { const selectedRatio = parseInt(inputElement.value, 10) / parseInt(inputElement.max, 10); // eslint-disable-next-line no-param-reassign @@ -15,5 +13,3 @@ inputs.forEach((e) => onSliderUpdate(e)); inputs.forEach((e) => { e.addEventListener('change', () => onSliderUpdate(e)); }); - -Checkboxes.default.setUpSelectAndDeselectInGroupButtons(); diff --git a/DigitalLearningSolutions.Web/Styles/learningPortal/selfAssessment.scss b/DigitalLearningSolutions.Web/Styles/learningPortal/selfAssessment.scss index 2e3c6d798e..b6ae38acdb 100644 --- a/DigitalLearningSolutions.Web/Styles/learningPortal/selfAssessment.scss +++ b/DigitalLearningSolutions.Web/Styles/learningPortal/selfAssessment.scss @@ -54,10 +54,6 @@ details.nhsuk-details { } } -.nhsuk-details__summary-text { - text-decoration: none; -} - .score { margin-left: 48px; color: $color_nhsuk-black; @@ -247,3 +243,7 @@ details.nhsuk-details { .text-area-edit-90 { height: 90px } + +.heading-checkboxes__label { + padding: 4px 12px 4px; +} diff --git a/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/ManageOptionalCompetencies.cshtml b/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/ManageOptionalCompetencies.cshtml index c635dc4bc9..4e2aa69a85 100644 --- a/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/ManageOptionalCompetencies.cshtml +++ b/DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/ManageOptionalCompetencies.cshtml @@ -8,11 +8,7 @@ ViewData["SelfAssessmentTitle"] = @Model.SelfAssessment.Name; var backLinkData = Html.GetRouteValues(); } - + @if (ViewBag.FromAddOptionalPage != null) { @section breadcrumbs { @@ -62,66 +58,91 @@ else } -

Choose optional @Model.VocabPlural().ToLower()

+

Optional @Model.VocabPlural().ToLower()

@if (errorHasOccurred) { } -

- Which optional @Model.VocabPlural().ToLower() would you like to include in your self-assessment? -

-@if (Model.SelfAssessment.ManageOptionalCompetenciesPrompt != null) -{ -
-

- - Important: - How to choose your optional @Model.VocabPlural().ToLower() - -

-
@Html.Raw(Model.SelfAssessment.ManageOptionalCompetenciesPrompt)
-
-} -
- - @foreach (var competencyGroup in Model.CompetencyGroups) - { -
+
+ @if (Model.SelfAssessment.ManageOptionalCompetenciesPrompt != null) + { +
+

+ + Important: + How to choose your optional @Model.VocabPlural().ToLower() + +

+
@Html.Raw(Model.SelfAssessment.ManageOptionalCompetenciesPrompt)
+
+ } + + +
+ +

+ Select your optional @Model.VocabPlural().ToLower() +

+
+ - @if (competencyGroup.Count() > 1) + @foreach (var competencyGroup in Model.CompetencyGroups) { - @if (competencyGroup.Any(x => x.GroupOptionalCompetencies)) + @if (competencyGroup.Count() > 1) { - -
- -
+
+ } + else + { +
+

+ @competencyGroup.Key +

+
@foreach (var competency in competencyGroup) - {
- -
+ { +
+ +
+
+ } - +
- + } } - else - { - - - @competencyGroup.Key - - - -
- @foreach (var competency in competencyGroup) - { -
- - -
- - } -
- } }
- } -
- -
- + + + + - -@section scripts { - -}