Skip to content

Commit

Permalink
Switch top errors box to use fields instead of form
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldfallen committed Oct 11, 2017
1 parent 7b1043a commit e1fafa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/look-and-feel/layouts/question.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@

<form action="{{ url }}" method="post" class="form">

{%- if form.validated and not form.valid -%}
{%- if fields.validated and not fields.valid -%}
<div class="error-summary" role="group" aria-labelledby="error-summary-heading" tabindex="-1">
<h1 class="heading-medium error-summary-heading" id="error-summary-heading">
There was a problem
</h1>
<ul class="error-summary-list">
{%- for error in form.errors -%}
{%- for error in fields.errors -%}
<li><a href="#{{error.id}}">{{error.message}}</a></li>
{%- endfor -%}
</ul>
Expand Down

0 comments on commit e1fafa1

Please sign in to comment.