Files
mapo-core/MP.Prog/Components/RevList.razor
T
2024-10-28 20:15:49 +01:00

48 lines
2.0 KiB
Plaintext

<table class="table table-sm table-striped table-responsive-lg">
<thead>
<tr>
<th class="text-center">Rev</th>
<th class="text-center">Size / User</th>
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
{
<tr>
<td class="text-center">
@record.Rev
<div>
<span title="@record.DiskStatus | Ultimo controllo: @record.LastCheck.ToString("yyyy.MM.dd HH:mm:ss")">
<span class="@(cssStatusByCod(record.DiskStatus))">
@record.DiskStatus
</span>
</span>
</div>
</td>
<td class="text-center px-1" style="width: 8rem;">
<div class="text-end px-3">
@CalcSize(record.Size)
</div>
<div class="text-end small">
@if (!string.IsNullOrEmpty(record.UserAppr))
{
<button class="btn btn-sm btn-outline-dark px-1 py-0" title="Filtra Utente" @onclick="() => FilterUserName(record.UserAppr)">
<i class="fas fa-user-alt"></i>
<span class="small">@record.UserAppr</span>
</button>
}
else
{
<button class="btn btn-sm btn-primary border border-info border-2 rounded px-2 py-0" title="Forza approvazione Release" @onclick="() => FileSetUserApp(record)">
<i class="fas fa-user-alt"></i>
Approva
<i class="fas fa-floppy-disk"></i>
</button>
}
</div>
</td>
</tr>
}
</tbody>
</table>