mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
0f8da123b8
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
@using BTCPayServer.Abstractions.TagHelpers
|
|
@using BTCPayServer.Client
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@model PairingModel
|
|
@{
|
|
var store = Context.GetStoreData();
|
|
Layout = store is null ? "_LayoutWizard" : "_Layout";
|
|
ViewData.SetActivePage(StoreNavPages.Tokens, "Pairing Permission", store?.Id);
|
|
}
|
|
|
|
@if (store is null)
|
|
{
|
|
@section Navbar {
|
|
<button type="button" class="cancel" onclick="history.back()">
|
|
<vc:icon symbol="close" />
|
|
</button>
|
|
}
|
|
}
|
|
<form asp-action="Pair" method="post" permissioned="@Policies.CanModifyStoreSettings">
|
|
<div class="sticky-header">
|
|
@if (store != null)
|
|
{
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a asp-action="ListTokens" asp-route-storeId="@store.Id">Access Tokens</a>
|
|
</li>
|
|
<li class="breadcrumb-item">
|
|
<a asp-action="CreateToken" asp-route-storeId="@store.Id">Create Token</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">@ViewData["Title"]</li>
|
|
</ol>
|
|
<h2>@ViewData["Title"]</h2>
|
|
</nav>
|
|
}
|
|
else
|
|
{
|
|
<h2>@ViewData["Title"]</h2>
|
|
}
|
|
<button id="ApprovePairing" type="submit" class="btn btn-primary mt-3" title="Approve this pairing demand">Approve</button>
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
<div class="row">
|
|
<div class="col-sm-8 col-md-6 @(store is null ? "mx-auto" : "")">
|
|
<table class="table table-hover">
|
|
<tr>
|
|
<th>Label</th>
|
|
<td class="text-end">@Model.Label</td>
|
|
</tr>
|
|
<tr>
|
|
<th>SIN</th>
|
|
<td class="text-end">@Model.SIN</td>
|
|
</tr>
|
|
</table>
|
|
@if (store is null)
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="StoreId" class="form-label">Pair To Store</label>
|
|
<select asp-for="StoreId" asp-items="@(new SelectList(Model.Stores, "Id", "Name"))" class="form-select"></select>
|
|
<span asp-validation-for="StoreId" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<input asp-for="StoreId" type="hidden" />
|
|
}
|
|
<input type="hidden" name="pairingCode" value="@Model.Id"/>
|
|
</div>
|
|
</div>
|
|
</form>
|