Re-add status messages to pull payments and payout views

This commit is contained in:
Dennis Reimann 2021-12-16 14:43:29 +01:00 committed by Andrew Camilleri
parent 2d7c5cabab
commit b68eae6f7d
3 changed files with 13 additions and 9 deletions

View File

@ -2,11 +2,11 @@
@using BTCPayServer.Views.Stores @using BTCPayServer.Views.Stores
@model BTCPayServer.Models.WalletViewModels.NewPullPaymentModel @model BTCPayServer.Models.WalletViewModels.NewPullPaymentModel
@{ @{
Layout = "../Shared/_NavLayout.cshtml";
ViewData["NavPartialName"] = "../Stores/_Nav";
ViewData.SetActivePage(StoreNavPages.PullPayments, "New pull payment", Context.GetStoreData().StoreName); ViewData.SetActivePage(StoreNavPages.PullPayments, "New pull payment", Context.GetStoreData().StoreName);
} }
<partial name="_StatusMessage" />
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h4 class="mb-3">@ViewData["Title"]</h4> <h4 class="mb-3">@ViewData["Title"]</h4>
@ -16,18 +16,18 @@
asp-action="NewPullPayment"> asp-action="NewPullPayment">
<div class="form-group"> <div class="form-group">
<label asp-for="Name" class="form-label"></label> <label asp-for="Name" class="form-label"></label>
<input asp-for="Name" class="form-control" /> <input asp-for="Name" class="form-control"/>
<span asp-validation-for="Name" class="text-danger"></span> <span asp-validation-for="Name" class="text-danger"></span>
</div> </div>
<div class="row"> <div class="row">
<div class="form-group col-8"> <div class="form-group col-8">
<label asp-for="Amount" class="form-label"></label> <label asp-for="Amount" class="form-label"></label>
<input asp-for="Amount" class="form-control" /> <input asp-for="Amount" class="form-control"/>
<span asp-validation-for="Amount" class="text-danger"></span> <span asp-validation-for="Amount" class="text-danger"></span>
</div> </div>
<div class="form-group col-4"> <div class="form-group col-4">
<label asp-for="Currency" class="form-label"></label> <label asp-for="Currency" class="form-label"></label>
<input asp-for="Currency" class="form-control" /> <input asp-for="Currency" class="form-control"/>
<span asp-validation-for="Currency" class="text-danger"></span> <span asp-validation-for="Currency" class="text-danger"></span>
</div> </div>
</div> </div>
@ -52,7 +52,7 @@
<h2 class="accordion-header" id="additional-custom-css-header"> <h2 class="accordion-header" id="additional-custom-css-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#additional-custom-css" aria-expanded="false" aria-controls="additional-custom-css"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#additional-custom-css" aria-expanded="false" aria-controls="additional-custom-css">
Custom CSS Custom CSS
<vc:icon symbol="caret-down" /> <vc:icon symbol="caret-down"/>
</button> </button>
</h2> </h2>
<div id="additional-custom-css" class="accordion-collapse collapse" aria-labelledby="additional-custom-css-header"> <div id="additional-custom-css" class="accordion-collapse collapse" aria-labelledby="additional-custom-css-header">
@ -62,7 +62,7 @@
<a href="https://docs.btcpayserver.org/Development/Theme/#2-bootstrap-themes" target="_blank" rel="noreferrer noopener"> <a href="https://docs.btcpayserver.org/Development/Theme/#2-bootstrap-themes" target="_blank" rel="noreferrer noopener">
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span> <span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
</a> </a>
<input asp-for="CustomCSSLink" class="form-control" /> <input asp-for="CustomCSSLink" class="form-control"/>
<span asp-validation-for="CustomCSSLink" class="text-danger"></span> <span asp-validation-for="CustomCSSLink" class="text-danger"></span>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -75,9 +75,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" id="Create" /> <input type="submit" value="Create" class="btn btn-primary" id="Create"/>
</div> </div>
</form> </form>
</div> </div>

View File

@ -48,6 +48,8 @@
</script> </script>
} }
<partial name="_StatusMessage" />
<h2 class="mt-1 mb-4">@ViewData["Title"]</h2> <h2 class="mt-1 mb-4">@ViewData["Title"]</h2>
<form method="post"> <form method="post">

View File

@ -34,6 +34,8 @@
</style> </style>
} }
<partial name="_StatusMessage" />
<div class="d-flex align-items-center justify-content-between mb-2"> <div class="d-flex align-items-center justify-content-between mb-2">
<h2 class="mb-0"> <h2 class="mb-0">
@ViewData["Title"] @ViewData["Title"]