49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
|
|
|
|
<table class="table table-sm table-striped table-responsive-md">
|
|
<thead>
|
|
<tr>
|
|
<th><i class="far fa-clock"></i></th>
|
|
<th title="Entrata"><i class="fas fa-sign-in-alt"></i></th>
|
|
<th>Scambio</th>
|
|
<th title="Uscita"><i class="fas fa-sign-out-alt"></i></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListTimb)
|
|
{
|
|
<tr>
|
|
<td class="small">@item.DataOra.ToString("dd/MM - HH:mm")</td>
|
|
<td title="Entrata">
|
|
@if (@item.Entrata == true)
|
|
{
|
|
<i class="fas fa-times"></i>
|
|
}
|
|
</td>
|
|
<td>
|
|
<button class="btn btn-sm btn-primary" title="Scambio IN/OUT" @onclick="() => ScambioInOut(item)"><i class="fas fa-exchange-alt"></i></button>
|
|
</td>
|
|
<td title="Uscita">
|
|
@if (@item.Entrata == false)
|
|
{
|
|
<i class="fas fa-times"></i>
|
|
}
|
|
</td>
|
|
<td>
|
|
@if (EnableEdit)
|
|
{
|
|
<button class="btn btn-sm btn-danger" @onclick="() => Delete(item)"><i class="fas fa-trash-alt"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-sm btn-secondary" disabled><i class="fas fa-trash-alt"></i></button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
|