mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
can select course from existing file
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
@using System.Linq;
|
||||
@using System.Linq
|
||||
|
||||
@inject CoursePlanner planner
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter, EditorRequired]
|
||||
public CalendarMonth Month { get; set; } = default!;
|
||||
|
||||
[Parameter, EditorRequired]
|
||||
public SemesterPlanner Semester { get; set; } = default!;
|
||||
public DayOfWeek[] WeekDaysList { get => (DayOfWeek[])Enum.GetValues(typeof(DayOfWeek)); }
|
||||
|
||||
public string MonthName { get => Month?.DaysByWeek.First().FirstOrDefault(d => d != null)?.ToString("MMMM") ?? ""; }
|
||||
@@ -18,7 +19,7 @@
|
||||
<div class="row text-center fw-bold">
|
||||
@foreach (DayOfWeek day in WeekDaysList)
|
||||
{
|
||||
<div class="@(Semester.Days.Contains(day) ? "col" : "col text-secondary")">@day</div>
|
||||
<div class="@(planner.LocalCourse.DaysOfWeek.Contains(day) ? "col" : "col text-secondary")">@day</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -41,7 +42,7 @@
|
||||
{
|
||||
<div class="@baseClasses"></div>
|
||||
} *@
|
||||
<Day date="day" Semester="Semester"></Day>
|
||||
<Day date="day"></Day>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user