btcpayserver/BTCPayServer/Views/UIStores/CreateToken.cshtml
d11n 0f8da123b8
UI: Move section navigation to sidebar (#5744)
* 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>
2024-06-19 15:23:10 +02:00

64 lines
2.4 KiB
Text

@model CreateTokenViewModel
@{
var store = Context.GetStoreData();
ViewData.SetActivePage(StoreNavPages.Tokens, "Create New Token", store?.Id);
ViewBag.HidePublicKey ??= false;
ViewBag.ShowStores ??= false;
}
<form method="post">
<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 active" aria-current="page">@ViewData["Title"]</li>
</ol>
<h2>@ViewData["Title"]</h2>
</nav>
}
else
{
<h2>@ViewData["Title"]</h2>
}
<input id="RequestPairing" type="submit" value="Request Pairing" class="btn btn-primary" />
</div>
<partial name="_StatusMessage" />
<div class="row">
<div class="col-xxl-constrain col-xl-8">
<div class="form-group">
<label asp-for="Label" class="form-label"></label>
@if (ViewBag.HidePublicKey)
{
<small class="text-muted">optional</small>
}
<input asp-for="Label" class="form-control" />
<span asp-validation-for="Label" class="text-danger"></span>
</div>
@if (!ViewBag.HidePublicKey)
{
<div class="form-group">
<label asp-for="PublicKey" class="form-label"></label>
<input asp-for="PublicKey" class="form-control" />
<span asp-validation-for="PublicKey" class="text-danger"></span>
<div class="form-text">Keep empty for server-initiated pairing.</div>
</div>
}
@if (ViewBag.ShowStores)
{
<div class="form-group">
<label asp-for="Stores" class="form-label"></label>
<select asp-for="StoreId" asp-items="Model.Stores" class="form-select"></select>
<span asp-validation-for="StoreId" class="text-danger"></span>
</div>
}
else
{
<input type="hidden" asp-for="StoreId" />
}
</div>
</div>
</form>