templates/front/theme1/form/devis_form.html.twig line 1

Open in your IDE?
  1. {% import "front/"~ app.request.server.get('APP_THEME') ~"/form/macro_form_devis.html.twig" as form %}
  2. <section class="devis_form">
  3.     <div class="container-fluid wrapper">       
  4.         <div class="row ">            
  5.             {% if bloc.form %}
  6.             <div class="col-xl-12 pr-xl-2 px-0">
  7.                 <form id="form-{{bloc.form.id}}" action="{{path('save_form')}}" method="post" class="needs-validation row gx-5 form-recap {{bloc.form.identifier}}" novalidate>
  8.                     {% for message in app.flashes('success-form-' ~ bloc.form.id) %}
  9.                         <div class="alert alert-success alert-form">
  10.                             {{ message|raw }}
  11.                         </div>
  12.                     {% endfor %}
  13.                     {% for message in app.flashes('error-form-' ~ bloc.form.id) %}
  14.                         <div class="alert alert-danger alert-form">
  15.                             {{ message|raw }}
  16.                         </div>
  17.                     {% endfor %}
  18.                     
  19.                     {% set message = 'validation_form'|trans([],'variable') %}
  20.                     <input type="hidden" value="{{bloc.form.id}}" name="IdForm">
  21.                     
  22.                     <div class="fieldset-form fieldset-form1">
  23.                         <div class="row">
  24.                             {% for key,item in bloc.form.data %}
  25.                                 {% if key < 9 %}
  26.                                     {{form.renderFromDevis(item)}}
  27.                                 {% endif %}
  28.                             {% endfor %}
  29.                         </div>
  30.                     </div>
  31.                     <div class="fieldset-form fieldset-form2">
  32.                         <div class="row">
  33.                             {% for key,item in bloc.form.data %}
  34.                                 {% if key >= 9 %}
  35.                                     {{form.renderFromDevis(item)}}
  36.                                 {% endif %}
  37.                             {% endfor %}
  38.                         </div>
  39.                     </div>
  40.         
  41.                     {% for item in bloc.form.data|filter(u => u.type == "button")  %}
  42.                         <div class="d-flex justify-content-center w-100">
  43.                             <div class="form-group button-submit">
  44.                                 <div class="position-relative">
  45.                                     <button class="btn btn-primary" type="submit">{{item.label}}</button>
  46.                                 </div>
  47.                             </div>
  48.                         </div>
  49.                     {% endfor %}
  50.                     <input type="hidden" id="{{bloc.form.id}}_captcha" name="g-recaptcha-response" value="">
  51.                 </form>
  52.             </div>
  53.             {% endif %}
  54.             {# {{ render(controller('App\\Controller\\Front\\FunctionController::renderContacts')) }} #}
  55.         </div>
  56.     </div>
  57. </section>