Files
limanapp/EgwControlCenter.App/Components/Compo/ApplicationCheck.razor
T

79 lines
3.2 KiB
Plaintext

<div class="card shadow">
<div class="card-header">
<div class="d-flex justify-content-between">
<div class="p-0">
<h5>App Control Center</h5>
</div>
<div class="p-0 d-flex small">
<div class="px-1 input-group input-group-sm">
<span class="input-group-text py-0">
<span class="form-check form-switch">
<label class="form-check-label">Only Updates</label>
<input class="form-check-input" type="checkbox" @bind="@ShowOnlyUpdate">
</span>
</span>
<button class="btn btn-sm btn-outline-success" @onclick="ForceCheck" title="Forza Verifica Immediata">Check Now <i class="fa-solid fa-rotate"></i></button>
</div>
<div class="px-1">
<button class="btn btn-sm btn-outline-primary" @onclick="ToggleSetup" title="Setup Controlli"><i class="fa-solid fa-angles-left"></i></button>
</div>
</div>
</div>
</div>
<div class="card-body px-2">
<table class="table table-striped table-sm text-start shadow border">
<thead>
<tr class="bg-dark bg-gradient text-light">
<th>Application</th>
<th>Installed</th>
<th>Available</th>
<th class="text-end">Note</th>
</tr>
</thead>
<tbody>
@if (ListRecords == null || ListRecords.Count == 0)
{
<tr>
<td colspan="5">
<div class="alert alert-warning">Nessun aggiornamento disponibile!</div>
</td>
</tr>
}
else
{
@foreach (var item in ListRecords)
{
<tr>
<td>
@item.CodApp
@if (item.HasUpdate)
{
<i class="fa-solid fa-bell text-success mx-2"></i>
}
</td>
<td>
@item.VersNumCurr
@if (item.VersNumCurr == "0.0.0.0")
{
<i class="fa-solid fa-triangle-exclamation text-warning mx-2"></i>
}
</td>
<td>@item.VersNumLast</td>
<td>@item.RelTagsLast</td>
</tr>
}
}
</tbody>
</table>
</div>
<div class="card-footer py-0 align-middle">
@if (totalCount > 5)
{
<EgwCoreLib.Razor.DataPager PageSize="@numRecord" currPage="@currPage" numRecordChanged="SetNumRec" numPageChanged="SetPage" totalCount="@totalCount" showLoading="@isLoading"></EgwCoreLib.Razor.DataPager>
}
</div>
</div>