mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Improve PayButton error page (#4129)
As this is a public page we should embed it in the non-navigation layout. Also improves the error display.
This commit is contained in:
parent
5032bbafb1
commit
dc07f046f2
1 changed files with 6 additions and 9 deletions
|
@ -1,17 +1,14 @@
|
||||||
@{
|
@{
|
||||||
|
Layout = "_LayoutSimple";
|
||||||
var allErrors = ViewData.ModelState.Values.SelectMany(v => v.Errors.Select(b => b.ErrorMessage));
|
var allErrors = ViewData.ModelState.Values.SelectMany(v => v.Errors.Select(b => b.ErrorMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<h2>Pay Button request failed</h2>
|
<h2>Pay Button request failed</h2>
|
||||||
Please fix following errors:
|
@foreach (var error in allErrors)
|
||||||
<ul>
|
{
|
||||||
@foreach (var error in allErrors)
|
<div class="alert alert-danger mt-4">@error</div>
|
||||||
{
|
}
|
||||||
<li>@error</li>
|
|
||||||
}
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue