mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Show more invoices on the invoice page, better search button
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<Version>1.0.1.78</Version>
|
<Version>1.0.1.79</Version>
|
||||||
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
|
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ namespace BTCPayServer.Controllers
|
|||||||
[Route("invoices")]
|
[Route("invoices")]
|
||||||
[Authorize(AuthenticationSchemes = "Identity.Application")]
|
[Authorize(AuthenticationSchemes = "Identity.Application")]
|
||||||
[BitpayAPIConstraint(false)]
|
[BitpayAPIConstraint(false)]
|
||||||
public async Task<IActionResult> ListInvoices(string searchTerm = null, int skip = 0, int count = 20)
|
public async Task<IActionResult> ListInvoices(string searchTerm = null, int skip = 0, int count = 50)
|
||||||
{
|
{
|
||||||
var model = new InvoicesModel();
|
var model = new InvoicesModel();
|
||||||
var filterString = new SearchString(searchTerm);
|
var filterString = new SearchString(searchTerm);
|
||||||
|
|||||||
@@ -18,8 +18,10 @@
|
|||||||
<hr class="primary">
|
<hr class="primary">
|
||||||
<p>Create, search or pay an invoice. (<a href="#help" data-toggle="collapse">Help</a>)</p>
|
<p>Create, search or pay an invoice. (<a href="#help" data-toggle="collapse">Help</a>)</p>
|
||||||
<div id="help" class="collapse text-left">
|
<div id="help" class="collapse text-left">
|
||||||
<p>You can search for invoice Id, deposit address, price, order id, store id, any buyer information and any product information.</br>
|
<p>
|
||||||
You can also apply filters to your search by searching for `filtername:value`, here is a list of supported filters</p>
|
You can search for invoice Id, deposit address, price, order id, store id, any buyer information and any product information.</br>
|
||||||
|
You can also apply filters to your search by searching for `filtername:value`, here is a list of supported filters
|
||||||
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b>storeid:id</b> for filtering a specific store</li>
|
<li><b>storeid:id</b> for filtering a specific store</li>
|
||||||
<li><b>status:(expired|invalid|complete|confirmed|paid|new)</b> for filtering a specific status</li>
|
<li><b>status:(expired|invalid|complete|confirmed|paid|new)</b> for filtering a specific status</li>
|
||||||
@@ -27,12 +29,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<form asp-action="SearchInvoice" method="post">
|
<form asp-action="SearchInvoice" method="post">
|
||||||
<input asp-for="SearchTerm" class="form-control" />
|
<div class="input-group">
|
||||||
|
<input asp-for="SearchTerm" class="form-control" />
|
||||||
|
<span class="input-group-btn">
|
||||||
|
<button type="submit" class="btn btn-primary" title="Search invoice">
|
||||||
|
<span class="fa fa-search"></span> Search
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<input type="hidden" asp-for="Count" />
|
<input type="hidden" asp-for="Count" />
|
||||||
<span asp-validation-for="SearchTerm" class="text-danger"></span>
|
<span asp-validation-for="SearchTerm" class="text-danger"></span>
|
||||||
<button type="submit" class="btn btn-primary" title="Search invoice">
|
|
||||||
<span class="fa fa-search"></span> Search
|
|
||||||
</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -82,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<td >@invoice.Status</td>
|
<td>@invoice.Status</td>
|
||||||
}
|
}
|
||||||
<td style="text-align:right">@invoice.AmountCurrency</td>
|
<td style="text-align:right">@invoice.AmountCurrency</td>
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
|
|||||||
@@ -1047,7 +1047,9 @@ pre {
|
|||||||
.table td {
|
.table td {
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-top: 1px solid #dee2e6; }
|
border-top: 0px solid #dee2e6;
|
||||||
|
border-bottom: 1px solid #dee2e6;
|
||||||
|
}
|
||||||
.table thead th {
|
.table thead th {
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
border-bottom: 2px solid #dee2e6; }
|
border-bottom: 2px solid #dee2e6; }
|
||||||
|
|||||||
Reference in New Issue
Block a user