Skip to content

Commit 617b3d3

Browse files
committed
TD-3784-Making Manage Course Available For Inactive Courses
1 parent 4522886 commit 617b3d3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

DigitalLearningSolutions.Web/Views/TrackingSystem/CourseSetup/_CentreCourseCard.cshtml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
</div>
3434
</details>
3535

36-
@if (Model.Active && !Model.Archived)
37-
{
38-
<div class="nhsuk-grid-row">
39-
<div class="nhsuk-grid-column-full nhsuk-u-margin-left-4">
36+
<div class="nhsuk-grid-row">
37+
<div class="nhsuk-grid-column-full nhsuk-u-margin-left-4">
38+
@if (Model.Active && !Model.Archived)
39+
{
4040
<a class="nhsuk-button nhsuk-u-margin-right-2 nhsuk-u-margin-bottom-2"
4141
role="button"
4242
@@ -45,14 +45,17 @@
4545
asp-route-customisationId="@Model.CustomisationId">
4646
Launch course
4747
</a>
48+
}
49+
else if (!Model.Archived)
50+
{
4851
<a class="nhsuk-button nhsuk-button--secondary nhsuk-u-margin-bottom-2"
4952
role="button"
5053
asp-controller="ManageCourse"
5154
asp-action="Index"
5255
asp-route-customisationId="@Model.CustomisationId">
5356
Manage course
5457
</a>
55-
</div>
58+
}
5659
</div>
57-
}
60+
</div>
5861
</div>

0 commit comments

Comments
 (0)