Skip to content

Commit a311001

Browse files
committed
TD-3877 Hiding Optional Proficiencies Heading If No optional proficiencies Are Present
1 parent dd924dc commit a311001

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

DigitalLearningSolutions.Web/Views/LearningPortal/Current/CompetencySelfAssessmentCertificate.cshtml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,12 @@
137137
</div>
138138

139139
<div class="body">
140-
<h3 class=" nhsuk-u-margin-bottom-3">
141-
Including the following optional proficiencies:
142-
</h3>
140+
@if (Model.CompetencyCountSelfAssessmentCertificate.Any())
141+
{
142+
<h3 class=" nhsuk-u-margin-bottom-3">
143+
Including the following optional proficiencies:
144+
</h3>
145+
}
143146
@foreach (var entry in Model.CompetencyCountSelfAssessmentCertificate)
144147
{
145148
<p class="nhsuk-u-margin-bottom-2 nhsuk-body-s">

DigitalLearningSolutions.Web/Views/LearningPortal/Current/DownloadCompetencySelfAssessmentCertificate.cshtml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,12 @@
446446
</div>
447447

448448
<div class="body">
449-
<h3 class=" nhsuk-u-margin-bottom-3">
450-
Including the following optional proficiencies:
451-
</h3>
449+
@if (Model.CompetencyCountSelfAssessmentCertificate.Any())
450+
{
451+
<h3 class=" nhsuk-u-margin-bottom-3">
452+
Including the following optional proficiencies:
453+
</h3>
454+
}
452455
@foreach (var entry in Model.CompetencyCountSelfAssessmentCertificate)
453456
{
454457
<p class="nhsuk-u-margin-bottom-2 nhsuk-body-s">

0 commit comments

Comments
 (0)