mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
64a7abe53a
* Remove xxl breakpoint * Remove code bg * Form updates * Update PoS accordion * Update forms * Fix webhook password toggle * Update highlight js styles * Page updates * Style unformatted checkboxes * Fix typo * Update accordions * Update policies domain mapping * Update toggles and checkboxes * Update storage pages * Fix specter logo filename casing * Update checkout experience view * Update webhook view * Re-add used negative margins * Update bootstrap * POS layout fixes * Decrease size of info icon in main headline * Update BTCPayServer/Views/Stores/ModifyWebhook.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com>
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
@model CreateTokenViewModel
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Create a new token", Context.GetStoreData()?.StoreName);
|
|
ViewBag.HidePublicKey = ViewBag.HidePublicKey ?? false;
|
|
ViewBag.ShowStores = ViewBag.ShowStores ?? false;
|
|
}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<h4 class="mb-4">@ViewData["PageTitle"]</h4>
|
|
<form method="post">
|
|
<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>
|
|
<small class="text-muted">Keep empty for server-initiated pairing</small>
|
|
<input asp-for="PublicKey" class="form-control" />
|
|
<span asp-validation-for="PublicKey" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
|
|
@if (ViewBag.ShowStores)
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="StoreId" 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 class="form-group">
|
|
<input id="RequestPairing" type="submit" value="Request pairing" class="btn btn-primary" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|