Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


namespace DigitalLearningSolutions.Data.Migrations
{
using FluentMigrator;

[Migration(202409051645)]
public class Alter_GetCompletedCoursesForCandidate_CourseActive : Migration
{
public override void Up()
{
Execute.Sql(Properties.Resources.TD_4634_Alter_GetCompletedCoursesForCandidate_UP);
}
public override void Down()
{
Execute.Sql(Properties.Resources.TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN);
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,10 @@
<data name="TD_4436_Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Scripts\TD-4436-Alter_uspCreateProgressRecordWithCompleteWithinMonths_Quiet_V2_Up.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>
</root>
<data name="TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Scripts\TD_4634_Alter_GetCompletedCoursesForCandidate_DOWN.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>
<data name="TD_4634_Alter_GetCompletedCoursesForCandidate_UP" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Scripts\TD_4634_Alter_GetCompletedCoursesForCandidate_UP.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>
</root>
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions DigitalLearningSolutions.Data/Models/BaseLearningItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public abstract class BaseLearningItem : BaseSearchableItem
public bool IsSelfAssessment { get; set; }
public bool SelfRegister { get; set; }
public bool IncludesSignposting { get; set; }
public bool Active { get; set; }
public int? CurrentVersion { get; set; }
public override string SearchableName
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ protected BaseLearningItemViewModel(BaseLearningItem course)
IsSelfAssessment = course.IsSelfAssessment;
SelfRegister = course.SelfRegister;
IncludesSignposting = course.IncludesSignposting;
Active = course.Active;
}

public string Name { get; set; }
Expand All @@ -24,5 +25,6 @@ protected BaseLearningItemViewModel(BaseLearningItem course)
public bool IsSelfAssessment { get; }
public bool SelfRegister { get; }
public bool IncludesSignposting { get; }
public bool Active { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</details>

<div class="flex-row">
@if (Model.ArchivedDate == null && Model.RemovedDate == null && Model.CheckUnpublishedCourse > 0)
@if (Model.ArchivedDate == null && Model.RemovedDate == null && Model.CheckUnpublishedCourse > 0 && Model.Active)
{
<a class="nhsuk-button nhsuk-u-margin-bottom-2 nhsuk-u-margin-right-2"
aria-describedby="@Model.Id-name"
Expand Down