Files
mapo-core/MP.SPEC/Components/AskCloseOdl.razor
T

38 lines
1.5 KiB
Plaintext

@if (CurrAction != null && CurrAction.IsActive)
{
<div class="d-flex justify-content-around" style="z-index: 9999;">
<div class="toast bg-light" role="alert" aria-live="assertive" aria-atomic="true" style="display: block; position: absolute;">
<div class="toast-header pulse-warning bg-danger text-warning">
<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"></button>
}
</div>
<div class="toast-body pt-5">
@CurrAction.Message
<br />
<br />
<br />
<div class="row">
<div class="col-6 d-grid">
@if (CurrAction.ShowConfirm)
{
<button class="btn btn-sm btn-success" @onclick="() => doConfirm()">CONFERMA</button>
}
</div>
<div class="col-6 d-grid">
@if (CurrAction.ShowCancel)
{
<button class="btn btn-sm btn-danger"@onclick="() => doCancel()">ANNULLA</button>
}
</div>
</div>
</div>
</div>
</div>
}