Skip to content

Commit 2ba2394

Browse files
TD-4560 Removing the select all check box
1 parent eebc6fa commit 2ba2394

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/ManageOptionalCompetencies.cshtml

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,45 +87,48 @@ else
8787
@foreach (var competencyGroup in Model.CompetencyGroups)
8888
{
8989
<fieldset class="nhsuk-fieldset nhsuk-u-margin-bottom-4">
90-
<legend class="nhsuk-fieldset__legend nhsuk-fieldset__legend--l">
91-
<span class="nhsuk-fieldset__heading">
92-
@competencyGroup.Key
93-
</span>
94-
</legend>
90+
9591
@if (competencyGroup.Count() > 1)
9692
{
9793
@if (competencyGroup.Any(x => x.GroupOptionalCompetencies))
9894
{
99-
<div class="nhsuk-grid-row nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-1 js-only-block">
100-
<div class="nhsuk-grid-column-full">
10195

102-
<div class="nhsuk-checkboxes__item">
103-
104-
<input data-group="@competencyGroup.Key" class="nhsuk-checkboxes__input select-all-checkbox" id="result-check-@competencyGroup.Key" name="groupOptionalCompetenciesChecked" checked="@(competencyGroup.Any(x => x.IncludedInSelfAssessment == true) ? true : false)" type="checkbox" value="@competencyGroup.Key">
105-
<label class="nhsuk-label nhsuk-checkboxes__label nhsuk-u-font-size-16" for="[email protected]">
106-
<h3> Select all @Model.VocabPlural().ToLower()</h3>
107-
</label>
108-
</div>
109-
110-
</div>
96+
<div class="nhsuk-checkboxes__item">
97+
<input data-group="@competencyGroup.Key" class="nhsuk-checkboxes__input select-all-checkbox" id="[email protected]" name="groupOptionalCompetenciesChecked" checked="@(competencyGroup.Any(x => x.IncludedInSelfAssessment == true) ? true : false)" type="checkbox" value="@competencyGroup.Key">
98+
<label class="nhsuk-label nhsuk-checkboxes__label nhsuk-u-font-size-16" for="[email protected]">
99+
<legend class="nhsuk-fieldset__legend nhsuk-fieldset__legend--l">
100+
<span class="nhsuk-fieldset__heading">
101+
@competencyGroup.Key
102+
</span>
103+
</legend>
104+
</label>
111105
</div>
112106
<details class="nhsuk-details">
113107
<summary class="nhsuk-details__summary nhsuk-u-padding-0">
114108
<h3 class="nhsuk-details__summary-text nhsuk-u-margin-bottom-0">
115109
<span class="nhsuk-u-margin-bottom-0">
116-
<span class="nhsuk-details__summary-text" id="@competencyGroup.Key">
117-
What&rsquo;s included in the @competencyGroup.Key </span>
110+
<span class="nhsuk-details__summary-text" id="@competencyGroup.Key">
111+
What&rsquo;s included in the @competencyGroup.Key
118112
</span>
119-
113+
</span>
114+
120115
</h3>
121116
</summary>
122117

123118
<div class="nhsuk-details__text nhsuk-card">
124119
<dl class="nhsuk-summary-list">
125120

126-
@foreach (var competency in competencyGroup)
121+
@foreach (var competency in competencyGroup)
127122
{
128123
<div class="nhsuk-summary-list__row">
124+
@foreach (var flag in competency.CompetencyFlags)
125+
{
126+
<span class="nhsuk-u-padding-right-2 @(ViewData["cssClass"]?.ToString())">
127+
<strong class="nhsuk-tag @flag.FlagTagClass">
128+
@flag.FlagName
129+
</strong>
130+
</span>
131+
}
129132
<dd class="nhsuk-summary-list__value">
130133
@competency.Name
131134
</dd>
@@ -141,6 +144,11 @@ else
141144
}
142145
else
143146
{
147+
<legend class="nhsuk-fieldset__legend nhsuk-fieldset__legend--l">
148+
<span class="nhsuk-fieldset__heading">
149+
@competencyGroup.Key
150+
</span>
151+
</legend>
144152
<div class="nhsuk-grid-row nhsuk-u-margin-top-3 nhsuk-u-margin-bottom-1 js-only-block">
145153
<div class="nhsuk-grid-column-full">
146154
<a class="nhsuk-button select-all-button select-all status-tag nhsuk-u-margin-bottom-1" role="button" data-group="@competencyGroup.Key" name="selectAll" value="true">Select all @Model.VocabPlural().ToLower()</a>
@@ -150,9 +158,6 @@ else
150158
<div class="nhsuk-checkboxes">
151159
@foreach (var competency in competencyGroup)
152160
{
153-
154-
155-
156161
<div class="nhsuk-checkboxes__item">
157162
<input class="nhsuk-checkboxes__input select-all-checkbox" data-group="@competencyGroup.Key" id="[email protected]" name="IncludedSelfAssessmentStructureIds" checked="@(Model.IncludedSelfAssessmentStructureIds != null ? Model.IncludedSelfAssessmentStructureIds.Contains((int)competency.SelfAssessmentStructureId) : false)" type="checkbox" value="@competency.SelfAssessmentStructureId">
158163
<label class="nhsuk-label nhsuk-checkboxes__label" for="[email protected]">

0 commit comments

Comments
 (0)