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
Expand Up @@ -22,6 +22,7 @@ public async Task<Course> GetCourse(string source, string id) {
CourseTitle = courseraCourse.Title,
Sections = [
new Section {
Title = "Coursera Information",
BeginDate = DateTime.MinValue,
EndDate = DateTime.MaxValue,
IsActive = true,
Expand Down
1 change: 1 addition & 0 deletions ProgramInformationV2.Data/FieldList/SectionGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public SectionGroup() {
[FieldType.Technical] = "Technical details used for internal purposes."
};
FieldItems = [
new() { Title = "Title", CategoryType = CategoryType.Section, FieldType = FieldType.General, InitialDescription = "Optional title, not used" },
new() { Title = "Section Code", CategoryType = CategoryType.Section, FieldType = FieldType.General, IsRequired = true },
new() { Title = "Alternate Title", CategoryType = CategoryType.Section, FieldType = FieldType.General, InitialDescription = "Create an alternative name for the section. This will appear on the course page." },
new() { Title = "Alternate Description", CategoryType = CategoryType.Section, FieldType = FieldType.General, InitialDescription = "Create an alternative description for the section. This will appear on the course page." },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</ilw-content>

@if (SectionItem != null && FieldItems != null) {
<MediumText Title="Title" FieldItems="FieldItems" @bind-Value="SectionItem.Title"></MediumText>
<SmallText Title="Section Code" FieldItems="FieldItems" @bind-Value="SectionItem.SectionCode"></SmallText>
<MediumText Title="Alternate Title" FieldItems="FieldItems" @bind-Value="SectionItem.AlternateTitle"></MediumText>
<LargeText Title="Alternate Description" FieldItems="FieldItems" @bind-Value="SectionItem.Description"></LargeText>
Expand Down
Loading