Files
mapo-core/MP.SPEC/Components/AskCloseOdl.razor
T
Samuele Locatelli 990ea5e2af SPEC:
- aggiunta e testata chiusura ODL
- aggiunta gestione reload forzoso se sparisce chiamata
2022-12-09 17:41:21 +01:00

36 lines
1.7 KiB
Plaintext

@if (CurrAction != null && CurrAction.IsActive)
{
<div class="d-flex justify-content-around mt-3" style="z-index: 9999;">
<div class="toast pulse-warning bg-primary border border-primary rounded" role="alert" aria-live="assertive" aria-atomic="true" style="display: block; position: absolute;">
<div class="toast-header pulse-warning bg-primary text-light">
<strong class="me-auto">@CurrAction.Topic</strong>
<small class="">@($"{CurrAction.DtReq:yyyy.MM.dd HH:mm:ss}")</small>
@if (CurrAction.ShowClose)
{
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close" @onclick="() => doCancel()"></button>
}
</div>
<div class="toast-body py-4 bg-light rounded-bottom fs-5">
@CurrAction.Message
<div class="text-center py-3">
<strong>@CurrAction.Parameter</strong>
</div>
<div class="row">
<div class="col-6 d-grid">
@if (CurrAction.ShowConfirm)
{
<button class="btn btn-sm btn-success" @onclick="() => doConfirm()"><i class="fas fa-check"></i> CONFERMA</button>
}
</div>
<div class="col-6 d-grid">
@if (CurrAction.ShowCancel)
{
<button class="btn btn-sm btn-danger" @onclick="() => doCancel()"><i class="fas fa-ban"></i> ANNULLA</button>
}
</div>
</div>
</div>
</div>
</div>
}