48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
@using System.Text.Encodings.Web
|
|
@using Microsoft.AspNetCore.Html
|
|
@using Microsoft.AspNetCore.Mvc.ViewFeatures
|
|
@inherits ConfirmBase
|
|
|
|
@if (ShowConfirmation)
|
|
{
|
|
<div class="modal fade show d-flex" id="exampleModal" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog align-self-center modal-lg " role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="exampleModalLabel">@ConfirmationTitle</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"
|
|
@onclick="() => OnConfirmationChange(false)">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
@if (ConfirmationMessages.Any())
|
|
{
|
|
foreach (var message in ConfirmationMessages)
|
|
{
|
|
<p class="mb-2">
|
|
@((MarkupString)message)
|
|
</p>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
@ConfirmationMessage
|
|
}
|
|
</div>
|
|
@if (!string.IsNullOrWhiteSpace(WarningMessage))
|
|
{
|
|
<div class="modal-body confirm-warning">
|
|
@WarningMessage
|
|
</div>
|
|
}
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"
|
|
@onclick="() => OnConfirmationChange(false)">@CancelButtonText</button>
|
|
<button type="button" class="btn btn-danger"
|
|
@onclick="() => OnConfirmationChange(true)">@ConfirmButtonText</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
} |