templates/front/message/_contact_form.html.twig line 1

Open in your IDE?
  1. {% form_theme form with ['bootstrap_4_inline_layout.html.twig'] %}
  2. {# {% form_theme form with ['bootstrap_4_horizontal_layout.html.twig'] %} #}
  3. <form id="contact_form" method="post" action="{{ path( 'contact' ) }}">
  4.     {{ form_errors(form) }}
  5.     {%- if display == 'agent_modal' or display == 'contact_modal_agent_' -%}
  6.     {{ form_row(form.rdv) }}
  7.     {{ form_row(form.line_1.nom) }}
  8.     {{ form_row(form.line_1.prenom) }}
  9.     {{ form_row(form.line_2.email) }}
  10.     {{ form_row(form.line_2.phone) }}
  11.     {{ form_row(form.message) }}
  12.     {%- elseif context == 'agent_page'  -%}
  13.     {{ form_row(form.rdv) }}
  14.     {{ form_row(form.line_1) }}
  15.     {{ form_row(form.line_2) }}
  16.     {{ form_row(form.message) }}
  17.     {%- elseif display == 'contact_modal_agent'  -%}
  18.     {{ form_row(form.rdv) }}
  19.     {{ form_row(form.line_1) }}
  20.     {{ form_row(form.line_2) }}
  21.     {{ form_row(form.message) }}
  22.     {% else %}
  23.         {{ form_row(form) }}
  24.     {%- endif -%}
  25.     <input type="hidden" id="context" name="context" value="{{ context }}">
  26.     <div class="submit_container form-group mx-2 text-right clearfix">
  27.         <span class="ring_loader">
  28.             <div class="lds-ring"><div></div><div></div><div></div><div></div></div>
  29.         </span>
  30.         <button type="submit" class="btn btn-primary "><i class="icon-paper-plane-empty"></i> Envoyer</button>
  31.     </div>
  32. {{ form_end(form) }}