{% load i18n crispy_forms_tags %} {% comment %} This is the default contact form rendering. All form layouts are handled by django-crispy-forms, which gives full control over the form layout via code. The form class can be configured using FLUENTCMS_CONTACTFORM_STYLES Note, from the template you can also perform adaptive layouts, by reading the `instance.placeholder.role` or `slot` field. The many if-statements here are not needed in most templates. They are included to provde a good out-of-the-box experience. Just using {% crispy form %} is enough on a properly configured form. NOTE: When adding a custom submit button, make it it has a `name="contactform_submit"` attribute. The backend uses that to filter form submissions in case there are multiple forms on the page. {% endcomment %}