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:
d11n 2022-09-19 21:56:42 +02:00 committed by GitHub
parent 5032bbafb1
commit dc07f046f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>