mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-04 22:54:20 +01:00
* Improve and unify page headers * Altcoin test fixes * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Fix missing store name in pairing view * Fix CanUsePairing test * Bump header navigation font size * Use partial tag instead of Html.PartialAsync in views As suggested by @nicolasdorier. These are equivalent, see details [here](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/partial?view=aspnetcore-3.1#partial-tag-helper). * Fix docs link As in #2432. * Update BTCPayServer/Views/Wallets/SignWithSeed.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletSendVault.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Views/Wallets/WalletTransactions.cshtml Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: Andrew Camilleri <evilkukka@gmail.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"></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"></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="control-label"></label>
|
|
<select asp-for="StoreId" asp-items="Model.Stores" class="form-control"></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>
|