{# ================================================================ FINAL TWIG TEMPLATE FOR cstv_add_contact_form Renders each field individually without duplicates. ================================================================ #}
{# ------------------------------------------------------------- TOP WRAPPER (AJAX REFRESHES THIS ENTIRE BLOCK) ------------------------------------------------------------- #}
{# --------------------------- HEADER BLOCK --------------------------- #}
{% if form.top_wrapper.header_block.header_text is defined %}
{{ form.top_wrapper.header_block.header_text }}
{% endif %}
{{ form.top_wrapper.header_block.mode_toggle }}
{% if form.top_wrapper.header_desc is defined %}
{{ form.top_wrapper.header_desc }}
{% endif %} {# --------------------------- FIELDS BLOCK --------------------------- #}
{{ form.top_wrapper.fields }}
{# -------------------------------------------------------- Remove raw wrapper from the output to prevent duplicates -------------------------------------------------------- #} {{ form|without('top_wrapper') }}