@page "/calendar"
@page "/calendar/{YearMonth}"
@attribute [Authorize]
@rendermode InteractiveServer
@inject IWorkDayService WorkDayService
@inject IItalianFestivitySource FestivitySource
@inject IJSRuntime JS
Loading...
} else {| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| TogglePopup(cell.Date)" role="button">
@cell.Date.Day
@if (!cell.IsCurrentMonth)
{
@cell.Date.ToString("MMM")
}
@FormatHours(GetDayTotalHours(cell.Entry, includePreviewTotals))
@if (IsActiveCell(cell.Date))
{
@FormatDisplayDate(cell.Date)
Select an existing entry or create a new one.
@if ((cell.Entry?.WorkUnits.Count ?? 0) == 0 && (cell.Entry?.CalendarEvents.Count ?? 0) == 0)
{
No entries for this day.
}
@foreach (var workUnit in cell.Entry?.WorkUnits ?? [])
{
}
@foreach (var calendarEvent in cell.Entry?.CalendarEvents ?? [])
{
}
|
}