form test
{% form 'contact' %} {% if form.posted_successfully? %}
{% endif %} {% if form.errors %}
{% endif %}
{% endform %}
{{ 'contact.form.post_success' | t }}
{{ 'general.forms.post_error' | t }}
- {% for field in form.errors %} {% if field == 'form' %}
- {{ form.errors.messages[field] }} {% else %}
- {{ field | replace: 'body', 'Message' }} {{ form.errors.messages[field] }} {% endif %} {% endfor %}