datamade/just-spaces

Show human-readable label in DAD form validation errors

Opened this issue · 0 comments

The DAD form displays errors with the following code:

{% for field, errors in form.errors.items %}
  <li>{{field}}: {{errors}}</li>
{% endfor %}

Unfortunately, field displays the raw field name, not the human-readable label:

https://user-images.githubusercontent.com/1094243/57240858-34803980-6ff5-11e9-97fa-d141185380fd.png

Once we have reliable errors that we can return, figure out how to display the human-readable label instead of the raw field name in errors.