5d72d21fb1
Update gestione paginazione (visibile solo dove serve) + fix calcolo di alcuni intems male filtrati
104 lines
4.4 KiB
Plaintext
104 lines
4.4 KiB
Plaintext
<div class="card shadow">
|
|
<div class="card-header bg-primary text-light">
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<h5>Elenco Releases</h5>
|
|
</div>
|
|
<div class="col-6">
|
|
<div class="btn-group w-100">
|
|
@if (recordEdit == null)
|
|
{
|
|
<button class="btn btn-success" @onclick="() => AddNew()">Add New <i class="fas fa-plus"></i></button>
|
|
<button type="button" class="btn btn-warning" @onclick="DoClose">Close <i class="fas fa-ban"></i></button>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (recordEdit != null)
|
|
{
|
|
<EditRelease currItem="@recordEdit" DataReset="() => DoEdit(null)" DataUpdated="DoSave"></EditRelease>
|
|
}
|
|
</div>
|
|
<div class="card-body px-1">
|
|
@if (ListRecords == null || isLoading)
|
|
{
|
|
<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-start">Rilascio</th>
|
|
<th class="text-end">Vers. Num</th>
|
|
<th class="text-end">Vers. Text</th>
|
|
<th class="text-end">Tags</th>
|
|
<th></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>
|
|
@if (!record.IsReleased)
|
|
{
|
|
<i class="fa-solid fa-hourglass-half text-warning px-2"></i>
|
|
}
|
|
</td>
|
|
<td class="text-start">
|
|
@($"{record.ReleaseDate:yyyy.MM.dd}")
|
|
<div class="small">
|
|
|
|
@($"{record.ReleaseDate:ddd, HH:mm:ss}")
|
|
</div>
|
|
</td>
|
|
<td class="text-end">
|
|
@record.VersNum
|
|
</td>
|
|
<td class="text-end">
|
|
@record.VersText
|
|
</td>
|
|
<td class="text-end">
|
|
@record.RelTags
|
|
</td>
|
|
<td class="text-end">
|
|
@if (recordEdit == null)
|
|
{
|
|
<button class="btn btn-sm btn-danger" @onclick="() => DoDelete(record)" title="Edit record"><i class="fas fa-trash"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-sm btn-secondary disabled"><i class="fas fa-trash"></i></button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
<div class="card-footer">
|
|
@if (totalCount > numRecord)
|
|
{
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="SetNumRec" numPageChanged="SetPage" totalCount="totalCount" showLoading="isLoading" />
|
|
}
|
|
</div>
|
|
</div> |