62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
@if (WeekRows == null || WeekRows.Count == 0)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<table class="text-center cssTable" style="@HeadCss">
|
|
<thead>
|
|
<tr class="row">
|
|
@for (int i = 0; i < 7; i++)
|
|
{
|
|
<th class="col">@($"{DateList[i]:ddd}".Substring(0, 1).ToUpper())</th>
|
|
}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
@if (SingleWeek)
|
|
{
|
|
<tr class="row">
|
|
@foreach (var giorno in SingleWeekRow)
|
|
{
|
|
<td class="col @singleDayCss(giorno)">
|
|
<span @onclick="() => clickDay(giorno)" class="@singleDaySpanCss(giorno)">
|
|
@($"{giorno:dd}")
|
|
</span>
|
|
</td>
|
|
}
|
|
</tr>
|
|
}
|
|
else
|
|
{
|
|
@foreach (var settim in WeekRows)
|
|
{
|
|
<tr class="row">
|
|
@foreach (var giorno in settim)
|
|
{
|
|
<td class="col @dayCss(giorno)">
|
|
<span @onclick="() => clickDay(giorno)" class="@spanCss(giorno)">
|
|
@($"{giorno:dd}")
|
|
</span>
|
|
</td>
|
|
}
|
|
</tr>
|
|
}
|
|
}
|
|
</tbody>
|
|
<tfoot>
|
|
@if (!SingleWeek)
|
|
{
|
|
<tr class="row">
|
|
<td colspan="7" class="col meseAnno">
|
|
@($"{DtRif:MMMM yyyy}")
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tfoot>
|
|
</table>
|
|
}
|
|
|
|
|