104 lines
4.1 KiB
Plaintext
104 lines
4.1 KiB
Plaintext
@if (IsLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
@if (ListRecords == null || ListRecords.Count == 0)
|
|
{
|
|
<div class="d-flex justify-content-around">
|
|
<alert class="alert alert-warning p-3 w-100 text-center">
|
|
Nessun record trovato
|
|
</alert>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-striped table-sm small">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<button class="btn btn-success btn-sm" @onclick="() => syncAll()" title="Sync ALL">
|
|
<i class="fa-solid fa-cloud-arrow-up"></i>
|
|
</button>
|
|
</th>
|
|
<th>Iva</th>
|
|
<th>Descrizione</th>
|
|
<th>Attivo</th>
|
|
<th>Split Payment</th>
|
|
<th>Cloud ID</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@if (item.id_ext < 0)
|
|
{
|
|
<button class="btn btn-sm btn-success" title="Sync Record" @onclick="() => syncCurrent(item)"><i class="fa-solid fa-cloud-arrow-up"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-sm btn-success disabled"><i class="fa-solid fa-cloud"></i></button>
|
|
}
|
|
</td>
|
|
<td class="fs-3">
|
|
<b>@($"{item.Iva:P2}")</b>
|
|
</td>
|
|
<td class="text-nowrap">
|
|
<div><b>@item.Descrizione</b></div>
|
|
</td>
|
|
<td class="text-nowrap">
|
|
<input type="checkbox" disabled checked="@item.Enabled">
|
|
</td>
|
|
<td class="text-nowrap">
|
|
<input type="checkbox" disabled checked="@item.SplitPay">
|
|
</td>
|
|
<td>@item.id_ext</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
}
|
|
@if (IsSynching)
|
|
{
|
|
<dialog class="modal fade show" tabindex="-1" style="display:block; background-color: rgba(10,10,10,.6);" aria-modal="true" role="dialog">
|
|
<div class="modal-dialog modal-xl">
|
|
<div class="modal-content">
|
|
<div class="col-12 text-center my-0 py-5 @modalCss">
|
|
<div class="d-flex justify-content-around py-5">
|
|
<div><i class="fas fa-save fa-5x"></i></div>
|
|
<div>
|
|
<h2>Cloud Sync in corso</h2>
|
|
<i>...un attimo di pazienza...</i>
|
|
</div>
|
|
<div><i class="fas fa-paper-plane fa-5x"></i></div>
|
|
</div>
|
|
@if (string.IsNullOrEmpty(modalMessage))
|
|
{
|
|
<div class="d-flex justify-content-around py-2">
|
|
<div><i class="fas fa-circle-notch fa-spin fa-5x"></i></div>
|
|
</div>
|
|
<div class="w-100">
|
|
<div class="progress">
|
|
<div class="progress-bar progress-bar-striped progress-bar-animated" style="@widthMessage"></div>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="d-flex justify-content-around py-2">
|
|
<b>@modalMessage</b>
|
|
</div>
|
|
<div class="d-flex justify-content-around py-2">
|
|
<button class="btn btn-warning" @onclick="() => closeModal()">Chiudi</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</dialog>
|
|
}
|