37e54bc587
- Fix gerstione revisioni x Del / Appr
61 lines
2.6 KiB
Plaintext
61 lines
2.6 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">
|
|
<button class="btn btn-sm btn-primary border border-info border-2 rounded px-2 py-0" title="Seleziona Release" @onclick="() => SelRev(record)">
|
|
@record.Rev
|
|
</button>
|
|
<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))
|
|
{
|
|
<div class="border border-dark rounded p-0 small">
|
|
<i class="fas fa-user-alt"></i>
|
|
<span class="px-1">@record.UserAppr</span>
|
|
</div>
|
|
}
|
|
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>
|
|
<td class="text-end">
|
|
<div>@record.LastMod.ToString("yyyy.MM.dd")</div>
|
|
<div class="small">@record.LastMod.ToString("ddd HH:mm.ss")</div>
|
|
|
|
</td>
|
|
<td class="text-end">
|
|
@if (string.IsNullOrEmpty(record.UserAppr))
|
|
{
|
|
<button class="btn btn-sm btn-danger " @onclick="() => DeleteRec(record)" title="Elimina Record"><i class="fa-solid fa-trash"></i></button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table> |