74 lines
2.6 KiB
Plaintext
74 lines
2.6 KiB
Plaintext
@if (DateList == null || DateList.Count == 0)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<table class="cssTable" style="@HeadStyle">
|
|
<thead>
|
|
<tr class="">
|
|
<th class="text-center" style="width: @lblWidth;">-</th>
|
|
@foreach (var item in DateList)
|
|
{
|
|
<th class="text-center" style="width: @dataWidth;">
|
|
<div>
|
|
@($"{item:ddd}".Substring(0, 1).ToUpper())
|
|
</div>
|
|
<div class="small">
|
|
<sup>@($"{item:dd}")</sup>
|
|
</div>
|
|
</th>
|
|
}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<CalWeekColumn ItemMode="CalWeekColumn.ColType.labelStart" vBox="vBoxLabel" EventList="@LabelList()" ValMin="8" ValMax="20"></CalWeekColumn>
|
|
</td>
|
|
@foreach (var item in DateList)
|
|
{
|
|
<td>
|
|
<CalWeekColumn ItemMode="CalWeekColumn.ColType.dataContainer" vBox="vBoxCont" EventList="@DayEvent(item)" ValMin="8" ValMax="20"></CalWeekColumn>
|
|
</td>
|
|
}
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="@calcColSpan" class="meseAnno">
|
|
<div class="d-flex justify-content-around">
|
|
<button class="containerBtnTemp btn-sm btn-primary" @onclick="()=> changeWeek(-1)"><i class="fa-solid fa-caret-left"></i></button>
|
|
<div class="">
|
|
@($"{DtRif: MMM yyyy}") | <b>W@($"{weekNum(DtRif):00}")</b>
|
|
</div>
|
|
<button class="containerBtnTemp btn-sm btn-primary" @onclick="()=> changeWeek(1)"><i class="fa-solid fa-caret-right"></i></button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
}
|
|
|
|
@*<svg viewBox="0 0 240 80" xmlns="http://www.w3.org/2000/svg">
|
|
<style>
|
|
.small {
|
|
font: italic 13px sans-serif;
|
|
}
|
|
.heavy {
|
|
font: bold 30px sans-serif;
|
|
}
|
|
|
|
/* Note that the color of the text is set with the *
|
|
* fill property, the color property is for HTML only */
|
|
.Rrrrr {
|
|
font: italic 40px serif;
|
|
fill: red;
|
|
}
|
|
</style>
|
|
|
|
<text x="20" y="35" class="small">My</text>
|
|
<text x="40" y="35" class="heavy">cat</text>
|
|
<text x="55" y="55" class="small">is</text>
|
|
<text x="65" y="55" class="Rrrrr">Grumpy!</text>
|
|
</svg>*@ |