Skip to content

Commit 0cdf530

Browse files
authored
Merge pull request #3363 from TechnologyEnhancedLearning/Develop/Fix/TD-6130-Download-certificate-button-Issue
TD-6130-The Download certificate button on learning portal is shown for all vocabularies except 'ProfileAssessment'
2 parents d916d00 + 7bd487c commit 0cdf530

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,21 @@
7676
<h1>Certificate</h1>
7777

7878
<h2>@Model.CompetencySelfAssessmentCertificates.SelfAssessment - @Model.CompetencySelfAssessmentCertificates.LearnerName </h2>
79-
@if (Model.Vocabulary == "Proficiencies")
79+
80+
@if (Model.Vocabulary == "ProfileAssessment")
8081
{
8182
<a class="nhsuk-button "
82-
asp-controller="LearningPortal"
83+
asp-controller="Supervisor"
8384
asp-route-candidateAssessmentId="@Model.CompetencySelfAssessmentCertificates.CandidateAssessmentID"
8485
asp-action="DownloadCertificate"
8586
role="button">
8687
Download certificate
8788
</a>
8889
}
89-
@if (Model.Vocabulary == "ProfileAssessment")
90+
else
9091
{
9192
<a class="nhsuk-button "
92-
asp-controller="Supervisor"
93+
asp-controller="LearningPortal"
9394
asp-route-candidateAssessmentId="@Model.CompetencySelfAssessmentCertificates.CandidateAssessmentID"
9495
asp-action="DownloadCertificate"
9596
role="button">

0 commit comments

Comments
 (0)