<div class="customform">
{% if view.main_content[loop.index0].form.entity %}
{% if app.request.get('send') != 'true' %}
{# FORM THEME #}
{% form_theme block.form '/dynamic_custom.html.twig' %}
{{ form(block.form, {'attr': {'class':'customform contactForm dflex jcc' }}) }}
{% else %}
{{ view.main_content[loop.index0].form.entity.successText|raw }}
{% endif %}
{% endif %}
</div>