65 lines
2.6 KiB
Plaintext
65 lines
2.6 KiB
Plaintext
@page "/WeekPlan"
|
|
|
|
@using GWMS.UI.Components
|
|
|
|
<div class="card">
|
|
<div class="card-header table-primary">
|
|
<div class="row">
|
|
<div class="col-9">
|
|
<h3>Week Plan</h3>
|
|
</div>
|
|
<div class="col-3">
|
|
<button class="btn btn-block btn-success" @onclick="CreateNew">Aggiunta Consegna <i class="far fa-calendar-plus"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (currRecord != null)
|
|
{
|
|
<WeekPlanEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData"></WeekPlanEditor>
|
|
}
|
|
@if (ListRecords == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="col-10 text-center">
|
|
<table class="table table-sm table-striped">
|
|
<tr>
|
|
<th></th>
|
|
<th>LUN</th>
|
|
<th>MAR</th>
|
|
<th>MER</th>
|
|
<th>GIO</th>
|
|
<th>VEN</th>
|
|
<th>SAB</th>
|
|
<th>DOM</th>
|
|
</tr>
|
|
@for (int i = 8; i < 22; i++)
|
|
{
|
|
<tr class="small">
|
|
<td>@i</td>
|
|
<td><ItemPlanDetail currList="@SlotList(DayOfWeek.Monday, i)"></ItemPlanDetail></td>
|
|
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Tuesday, i)"></ItemPlanDetail></td>
|
|
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Wednesday, i)"></ItemPlanDetail></td>
|
|
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Thursday, i)"></ItemPlanDetail></td>
|
|
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Friday, i)"></ItemPlanDetail></td>
|
|
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Saturday, i)"></ItemPlanDetail></td>
|
|
<td><ItemPlanDetail currList="@SlotList(@DayOfWeek.Sunday, i)"></ItemPlanDetail></td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</div>
|
|
<div class="col-2 text-center">
|
|
Legenda
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div> |