Files
Mapo-IOB/SMGen/Components/FilesList.razor
T
zaccaria.majid cf941dcede fix grafici
2023-08-07 13:08:46 +02:00

82 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="d-flex justify-content-between">
<div>
<CircleGauge Titolo="@($"{FilesTemp.Count()}")" Testo="Loaded Files" maxVal="FilesTemp.Count()" currVal="@succFiles" strokeColorVal="#27AE60" StyleTitolo="font-size: 2.7rem; font-weight:bold; fill: #212427;" StyleTesto="font-size: 1rem; fill: #ACACAC;" ShowCircleBtn="false"></CircleGauge>
</div>
</div>
<div class="p-2">
<table class="table">
<thead>
<tr>
<th scope="col">Rul file</th>
<th scope="col">Status</th>
<th scope="col">
@if (Files != null && Files.Count > 0)
{
<button @onclick="()=>Read_rule_file_transitions()">Process</button>
}
</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach (var item in Files)
{
<tr>
<td scope="row">@item.Key</td>
@if (item.Value.isOk)
{
<td class="text-success"><i class="fa-solid fa-circle-check"></i></td>
<td>
<a href="Download?fileName=@item.Value.DLoadFileName" target="_blank" class="btn btn-sm bg-success"><i class="fa-solid fa-download"></i></a>
</td>
}
else
{
<td class="text-danger">
<i class="fa-solid fa-circle-xmark"></i>
</td>
<td>
@if (item.Value.calcRunning)
{
<LoadingData DisplaySize="LoadingData.CtrlSize.Small" DisplayMode="LoadingData.SpinMode.BounceLine"></LoadingData>
}
else
{
<a class="btn btn-sm text-decoration-none" disabled><i class="fa-solid fa-download text-secondary"></i></a>
}
</td>
@if (item.Value.errorMsg != "")
{
<td>
<button class="btn btn-sm btn-danger" data-bs-toggle="modal" data-bs-target="#exampleModal" @onclick="()=>setCurrMsg(item.Value)"><i class="fa-solid fa-circle-exclamation"></i></button>
</td>
}
else
{}
}
</tr>
}
</tbody>
</table>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-danger text-warning">
<h1 class="modal-title fs-5" id="exampleModalLabel">Errore</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
@currMsg
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>