Skip to content

Commit

Permalink
Error sumamry
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmking committed Jan 20, 2021
1 parent af2b062 commit 983fc88
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,27 @@
</div>
}

if ()
if (!string.IsNullOrEmpty(Model.AornError) || !string.IsNullOrEmpty(Model.PayeRefError))
{
<div class="govuk-error-summary" aria-labelledby="error-summary-title" role="alert" tabindex="-1" data-module="govuk-error-summary">
<h2 class="govuk-error-summary__title" id="error-summary-title" id="error-summary-heading">
There is a problem
</h2>
<div class="govuk-error-summary__body">
<ul class="govuk-list govuk-error-summary__list">
@if (!string.IsNullOrEmpty(Model.AornError))
{
<li>
<a href="#aorn">@Model.AornError</a>
</li>
}
@if (!string.IsNullOrEmpty(Model.PayeRefError))
{
<li>
<a href="#payeRef">@Model.PayeRefError</a>
</li>
}
</ul>
</div>
</div>
}
Expand Down

0 comments on commit 983fc88

Please sign in to comment.