diff --git a/envergo/templates/amenagement/base.html b/envergo/templates/amenagement/base.html index 8d49b4b10..ddbfe6f0c 100644 --- a/envergo/templates/amenagement/base.html +++ b/envergo/templates/amenagement/base.html @@ -39,7 +39,10 @@ - {% include 'amenagement/_newsletter_opt_in.html' %} + {% if newsletter_opt_in_form %} + {# If an exception is raised, the newsletter_opt_in_form is not populated into the context#} + {% include 'amenagement/_newsletter_opt_in.html' %} + {% endif %} {% endblock %} {% block footer %}