templates/pages/blocks/sub-blocks/form.html.twig line 1

Open in your IDE?
  1. {#<form class="fade" action="{{ path }}" method="{{method}}" enctype="multipart/form-data">#}
  2.     <div class='flex flex-col gap-6'>
  3.     {% for item in snippets %}
  4.         {% for form in item.form %}
  5.             {% for row in form.field %}
  6.                 {{ include('pages/blocks/form/' ~ row.type ~ '.html.twig', {
  7.                     content : row,
  8.                     index : loop.index
  9.                 }) }}
  10.             {% endfor %}
  11.         {% endfor %}
  12.     {% endfor %}
  13.     </div>
  14.     <input id="sending" type="hidden" name="sending" value="{{snippets[0].sending }}"/>
  15.     <input type="hidden" name="recaptcha-key" value="6LeAM5soAAAAAEbvkEGxEoj8MYPh_51P0Lc7_MH5">
  16.   {# input with name g-recaptcha-response is generated by JS #}
  17.     {# <input id="recaptchaResponse" type="hidden" name="g-recaptcha-response"/> #}
  18.     
  19.     <input type="hidden" name="referer" value="{{app.request.uri}}"/>
  20.     <input type="hidden" name="email_from" value="{{snippets ? snippets[0].submition_from : '' }}"/>
  21.     <input type="hidden" name="email_to" value="{{snippets ? snippets[0].submition_to : '' }}"/>
  22.     <input type="hidden" name="email_subject" value="{{snippets ? snippets[0].submition_subject : '' }}"/>
  23.     <input type="hidden" name="admin_form_title" value="{{snippets ? snippets[0].admin_form_title : '' }}"/>
  24.     <input type="hidden" name="client_form_title" value="{{snippets ? snippets[0].client_form_title : '' }}"/>
  25.     <input type="hidden" name="admin_form_text" value="{{snippets ? snippets[0].admin_form_text : '' }}"/>
  26.     <input type="hidden" name="client_form_text" value="{{snippets ? snippets[0].client_form_text : '' }}"/>
  27.     <div class="form-success-message form-message">{{ msg | raw }}</div>
  28.   <div class="form-error-message form-message">Error</div>
  29. {#</form>#}