{{ for d in fields }} {{ formfield d.name }} {{ if show_solutions }} {{ if d.is_correct }}

Correct.
{{ d.explanation }}

{{ else }}

Wrong.
{{ d.explanation }}

{{ endif }} {{ endif }} {{ endfor }}