mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
* Swap bootstrap asset files * Update themes and color definitions * Move general bootstrap customizations * Theme updates Theme updates * Remove BuildBundlerMinifier This lead to an error, because BuildBundlerMinifier and BundlerMinifier.Core seem to conflict here. Details: https://stackoverflow.com/a/61119586 * Rewplace btn-block class with w-100 * Update badge classes * Remove old font family head variable * Update margin classes * Cleanups * Update float classes * Update text classes * Update padding classes * Update border classes * UPdate dropdown classes * Update select classes * Update neutral custom props * Update bootstrap and customizations * Update ChromeDriver; disable smooth scroll https://github.com/SeleniumHQ/selenium/issues/8295 * Improve alert messages * Improve bootstrap customizations * Disable reduced motion See also 7358282f * Update Bootstrap data attributes * Update file inputs * Update input groups * Replace deprecated jumbotron class * Update variables; re-add negative margin util classes * Update cards * Update form labels * Debug alerts * Fix aria-labelledby associations * Dropdown-related test fixes * Fix CanUseWebhooks test * Test fixes * Nav updates * Fix nav usage in wallet send and payouts * Update alert and modal close buttons * Re-add backdrop properties * Upgrade Bootstrap to v5 final * Update screen reader classes * Update font-weight classes * Update monospace font classes * Update accordians * Update close icon usage * Cleanup * Update scripts and style integrations * Update input group texts * Update LN node setup page * Update more form control classes * Update inline forms * Add js specific test * Upgrade Vue.js * Remove unused JS * Upgrade Bootstrap to v5.0.1 * Try container related test updates * Separate jQuery bundle * Remove jQuery from LND seed backup page * Remove unused code * Refactor email autofill js * Refactor camera scanner JS * Re-add tests * Re-add BuildBundlerMinifier * Do not minify bundles containing Bootstrap Details https://github.com/madskristensen/BundlerMinifier/issues/558 * Update bundles * Cleanup JS test * Cleanup tests involving dropdowns * Cleanup tests involving collapses * Cleanup locale additions in ConfigureCore * Cleanup bundles * Remove duplicate status message * Cleanup formatting * Fix missing validation scripts * Remove unused unminified Bootstrap js files * Fix classic theme * Fix Casa theme * Fix PoS validation
116 lines
5 KiB
Text
116 lines
5 KiB
Text
@model PullPaymentsModel
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePageAndTitle(WalletsNavPages.PullPayments, "Pull payments", Context.GetStoreData().StoreName);
|
|
}
|
|
|
|
@section PageHeadContent {
|
|
<style type="text/css">
|
|
.tooltip-inner {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
<div class="d-flex align-items-center justify-content-between mt-n1 mb-3">
|
|
<h4 class="mb-0">
|
|
@ViewData["Title"]
|
|
<small>
|
|
<a href="https://docs.btcpayserver.org/PullPayments/" target="_blank">
|
|
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
|
|
</a>
|
|
</small>
|
|
</h4>
|
|
@if (Model.HasDerivationSchemeSettings)
|
|
{
|
|
<a asp-action="NewPullPayment" asp-route-walletId="@Context.GetRouteValue("walletId")" class="btn btn-primary" role="button" id="NewPullPayment">
|
|
<span class="fa fa-plus"></span> Create a new pull payment
|
|
</a>
|
|
}
|
|
</div>
|
|
|
|
@if (Model.PullPayments.Any())
|
|
{
|
|
<div class="row">
|
|
@foreach (var pp in Model.PullPayments)
|
|
{
|
|
<script id="tooptip_template_@pp.Id" type="text/template">
|
|
<span>Awaiting: <span class="float-end">@pp.Progress.Awaiting</span></span>
|
|
<br />
|
|
<span>Completed: <span class="float-end">@pp.Progress.Completed</span></span>
|
|
<br />
|
|
<span>Limit: <span class="float-end">@pp.Progress.Limit</span></span>
|
|
@if (pp.Progress.ResetIn != null)
|
|
{
|
|
<br />
|
|
<span>Resets in: <span class="float-end">@pp.Progress.ResetIn</span></span>
|
|
}
|
|
@if (pp.Progress.EndIn != null)
|
|
{
|
|
<br />
|
|
<span>Expires in: <span class="float-end">@pp.Progress.EndIn</span></span>
|
|
}
|
|
</script>
|
|
}
|
|
<div class="col-md-12">
|
|
<table class="table table-sm table-responsive-lg">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th scope="col">Start</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Refunded</th>
|
|
<th scope="col" class="text-end">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var pp in Model.PullPayments)
|
|
{
|
|
<tr>
|
|
<td>@pp.StartDate.ToBrowserDate()</td>
|
|
<td>@pp.Name</td>
|
|
<td class="align-middle">
|
|
<div class="progress ppProgress" data-pp="@pp.Id" data-bs-toggle="tooltip" data-bs-html="true">
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="@pp.Progress.CompletedPercent"
|
|
aria-valuemin="0" aria-valuemax="100" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width:@(pp.Progress.CompletedPercent)%;">
|
|
</div>
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="@pp.Progress.AwaitingPercent"
|
|
aria-valuemin="0" aria-valuemax="100" style="background-color:orange; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width:@(pp.Progress.AwaitingPercent)%;">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="text-end">
|
|
<a asp-action="ViewPullPayment"
|
|
asp-controller="PullPayment"
|
|
asp-route-pullPaymentId="@pp.Id">View</a> -
|
|
<a class="pp-payout" asp-action="Payouts"
|
|
asp-route-walletId="@Context.GetRouteValue("walletId")"
|
|
asp-route-pullPaymentId="@pp.Id">Payouts</a> -
|
|
<a asp-action="ArchivePullPayment"
|
|
asp-route-walletId="@Context.GetRouteValue("walletId")"
|
|
asp-route-pullPaymentId="@pp.Id">Archive</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
@section PageFootContent {
|
|
<script>
|
|
var ppProgresses = document.getElementsByClassName("ppProgress");
|
|
for (var i = 0; i < ppProgresses.length; i++) {
|
|
var pp = ppProgresses[i];
|
|
var ppId = pp.getAttribute("data-pp");
|
|
var template = document.getElementById("tooptip_template_" + ppId);
|
|
pp.setAttribute("title", template.innerHTML);
|
|
}
|
|
</script>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<p class="text-secondary mt-3">
|
|
There are no pull payments yet.
|
|
</p>
|
|
}
|