Files
limanapp/LiMan.UI/Components/ListReleases.razor
T
2024-08-07 17:34:12 +02:00

68 lines
2.8 KiB
Plaintext

<div class="card shadow">
<div class="card-header">
<div class="row">
<div class="col-8">
<h5>Elenco Releases Applicativo <b>@CurrRecord.CodApp</b></h5>
</div>
<div class="col-4">
<button type="button" class="btn btn-warning w-100" @onclick="DoClose">Close <i class="fas fa-ban"></i></button>
</div>
</div>
</div>
<div class="card-body">
@if (ListRecords == null)
{
<LoadingData></LoadingData>
}
else if (totalCount == 0)
{
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
}
else
{
<table class="table table-sm table-striped table-responsive-lg">
<thead>
<tr>
<th></th>
<th>Applicazione</th>
<th class="text-lect">Rilascio</th>
<th class="text-right">Vers. Num</th>
<th class="text-right">Vers. Text</th>
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
{
<tr class="@checkSelect(record.IdxRel)">
<td class="text-nowrap">
@if (recordEdit == null)
{
<button class="btn btn-sm btn-info" @onclick="() => DoEdit(record)" title="Edit record"><i class="oi oi-pencil"></i></button>
}
else
{
<button class="btn btn-sm btn-secondary disabled"><i class="oi oi-pencil"></i></button>
}
</td>
<td>
<b>@record.CodApp</b>
</td>
<td class="text-right">
@($"{record.ReleaseDate:yyyy.MM.dd}")
</td>
<td class="text-right">
@record.VersNum
</td>
<td class="text-right">
@record.VersText
</td>
</tr>
}
</tbody>
</table>
}
</div>
<div class="card-footer">
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="PagerReloadNum" numPageChanged="PagerReloadPage" totalCount="totalCount" showLoading="isLoading" />
</div>
</div>