{% if form %} {% load crispy_forms_tags %} {% crispy form form.helper %} {% else %} {{ contact.thanks|safe }} {% endif %}