mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Fix invoice action responsiveness (#1854)
This commit is contained in:
parent
9ac5011bed
commit
81bba8c829
1 changed files with 22 additions and 17 deletions
|
@ -23,28 +23,33 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-lg-12 section-heading">
|
||||
<div class="d-flex justify-content-between">
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<form asp-action="ToggleArchive" asp-route-invoiceId="@Model.Id" method="post">
|
||||
@if (Model.CanRefund)
|
||||
{
|
||||
<a id="refundlink" class="btn btn-success" asp-action="Refund" asp-route-invoiceId="@this.Context.GetRouteValue("invoiceId")">Issue refund <span class="fa fa-undo"></span></a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button href="#" class="btn btn-secondary" data-toggle="tooltip" title="You can only issue refunds on invoices with confirmed payments" disabled>Issue refund <span class="fa fa-undo"></span></button>
|
||||
}
|
||||
<button type="submit" class="@(Model.Archived ? "btn btn btn-warning" : "btn btn-danger")" id="btn-archive-toggle">
|
||||
@if (Model.Archived)
|
||||
<div class="row">
|
||||
<h2 class="col-xs-12 col-lg-9">@ViewData["Title"]</h2>
|
||||
<div class="col-xs-12 col-lg-3 ">
|
||||
<div class="d-inline-flex">
|
||||
@if (Model.CanRefund)
|
||||
{
|
||||
<span data-toggle="tooltip" title="Unarchive this invoice">Archived <i class=" ml-1 fa fa-close"></i></span>
|
||||
<a id="refundlink" class=" btn btn-success" asp-action="Refund" asp-route-invoiceId="@this.Context.GetRouteValue("invoiceId")">Issue refund <span class="fa fa-undo"></span></a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span data-toggle="tooltip" title="Archive this invoice so that it does not appear in the invoice list by default">Archive <i class=" ml-1 fa fa-archive"></i></span>
|
||||
<button href="#" class="btn btn-secondary" data-toggle="tooltip" title="You can only issue refunds on invoices with confirmed payments" disabled>Issue refund <span class="fa fa-undo"></span></button>
|
||||
}
|
||||
</button>
|
||||
</form>
|
||||
<form class="p-0 ml-1" asp-action="ToggleArchive" asp-route-invoiceId="@Model.Id" method="post">
|
||||
|
||||
<button type="submit" class="btn @(Model.Archived ? "btn-warning" : "btn btn-danger")" id="btn-archive-toggle">
|
||||
@if (Model.Archived)
|
||||
{
|
||||
<span data-toggle="tooltip" title="Unarchive this invoice">Archived <i class=" ml-1 fa fa-close"></i></span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span data-toggle="tooltip" title="Archive this invoice so that it does not appear in the invoice list by default">Archive <i class=" ml-1 fa fa-archive"></i></span>
|
||||
}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="primary">
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue