mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
06db29dd43
* Refactor confirm view: separate modal * Add delete confirmation modals for apps and FIDO2 * Add delete confirmation modals for 2FA actions * Add delete confirmation modals for api keys and webhooks * Add delete confirmation modals for stores and store users * Add delete confirmation modals for LND seed and SSH * Add delete confirmation modals for rate rule scripting * Test fixes and improvements * Add delete confirmation modals for dynamic DNS * Add delete confirmation modals for store access tokens * Add confirmation modals for pull payment archiving * Refactor confirm modal code * Add confirmation input, update wording * Update modal styles * Upgrade ChromeDriver * Simplify and unify confirmation input * Test fixes * Fix wording * Add modals for wallet replace and removal
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
@model ConfirmModel
|
|
|
|
<div class="modal-dialog modal-dialog-centered">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title" id="ConfirmTitle">@Model.Title</h4>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
|
|
<vc:icon symbol="close" />
|
|
</button>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="ConfirmDescription">
|
|
@if (Model.DescriptionHtml)
|
|
{
|
|
@Safe.Raw(Model.Description)
|
|
}
|
|
else
|
|
{
|
|
@Model.Description
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
@if (!string.IsNullOrEmpty(Model.Action))
|
|
{
|
|
<form id="ConfirmForm" method="post" action="@Model.ActionUrl" rel="noreferrer noopener">
|
|
<div class="modal-body pt-0" id="ConfirmText" hidden>
|
|
<label for="ConfirmInput" class="form-label">Confirm the action by typing <strong id="ConfirmInputText"></strong>:</label>
|
|
<input id="ConfirmInput" class="form-control"/>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary only-for-js" data-bs-dismiss="modal" id="ConfirmCancel">Cancel</button>
|
|
<button type="submit" class="btn @Model.ButtonClass" id="ConfirmContinue">@Model.Action</button>
|
|
</div>
|
|
</form>
|
|
}
|
|
</div>
|
|
</div>
|