{% form_theme form with ['bootstrap_4_inline_layout.html.twig'] %}
{# {% form_theme form with ['bootstrap_4_horizontal_layout.html.twig'] %} #}
<form id="contact_form" method="post" action="{{ path( 'contact' ) }}">
{{ form_errors(form) }}
{%- if display == 'agent_modal' or display == 'contact_modal_agent_' -%}
{{ form_row(form.rdv) }}
{{ form_row(form.line_1.nom) }}
{{ form_row(form.line_1.prenom) }}
{{ form_row(form.line_2.email) }}
{{ form_row(form.line_2.phone) }}
{{ form_row(form.message) }}
{%- elseif context == 'agent_page' -%}
{{ form_row(form.rdv) }}
{{ form_row(form.line_1) }}
{{ form_row(form.line_2) }}
{{ form_row(form.message) }}
{%- elseif display == 'contact_modal_agent' -%}
{{ form_row(form.rdv) }}
{{ form_row(form.line_1) }}
{{ form_row(form.line_2) }}
{{ form_row(form.message) }}
{% else %}
{{ form_row(form) }}
{%- endif -%}
<input type="hidden" id="context" name="context" value="{{ context }}">
<div class="submit_container form-group mx-2 text-right clearfix">
<span class="ring_loader">
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</span>
<button type="submit" class="btn btn-primary "><i class="icon-paper-plane-empty"></i> Envoyer</button>
</div>
{{ form_end(form) }}