Files
Samuele Locatelli de7e742731 Rename part 2:
- aggiunta nuova path e rename
2023-02-03 08:29:22 +01:00

97 lines
3.8 KiB
Plaintext

@if (WeekRows == null || WeekRows.Count == 0)
{
<LoadingData></LoadingData>
}
else
{
<table class="text-center cssTable" style="@HeadStyle">
<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)" @onclick="() => clickDay(giorno)">
<span 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)" @onclick="() => clickDay(giorno)">
<span class="@spanCss(giorno)">
@($"{giorno:dd}")
</span>
@if (!(giorno.DayOfWeek == DayOfWeek.Saturday || giorno.DayOfWeek == DayOfWeek.Sunday))
{
<div class="pallini">
@if (hasDot(giorno, "MAL"))
{
<div class="malattie">
&nbsp;
</div>
}
@if (hasDot(giorno, "FER"))
{
<div class="ferie">
&nbsp;
</div>
}
@if (hasDot(giorno, "PERM"))
{
<div class="permessi">
&nbsp;
</div>
}
@if (hasDot(giorno, "104"))
{
<div class="permessi104">
&nbsp;
</div>
}
</div>
}
</td>
}
</tr>
}
}
</tbody>
<tfoot>
@if (!SingleWeek)
{
<tr class="row">
<td class="col ">
<div colspan="7" class="meseAnno d-flex justify-content-around">
<button class="containerBtnTemp" @onclick="()=> subtractMonth()"><i class="fa-solid fa-circle-chevron-left"></i></button>
<div class="">
@($"{DtRif: MMM yyyy}")
</div>
<button class="containerBtnTemp" @onclick="()=> addMonth()"><i class="fa-solid fa-circle-chevron-right"></i></button>
</div>
</td>
</tr>
}
</tfoot>
</table>
}