{% import "front/"~ app.request.server.get('APP_THEME') ~"/form/macro_form_devis.html.twig" as form %}
<section class="devis_form">
<div class="container-fluid wrapper">
<div class="row ">
{% if bloc.form %}
<div class="col-xl-12 pr-xl-2 px-0">
<form id="form-{{bloc.form.id}}" action="{{path('save_form')}}" method="post" class="needs-validation row gx-5 form-recap {{bloc.form.identifier}}" novalidate>
{% for message in app.flashes('success-form-' ~ bloc.form.id) %}
<div class="alert alert-success alert-form">
{{ message|raw }}
</div>
{% endfor %}
{% for message in app.flashes('error-form-' ~ bloc.form.id) %}
<div class="alert alert-danger alert-form">
{{ message|raw }}
</div>
{% endfor %}
{% set message = 'validation_form'|trans([],'variable') %}
<input type="hidden" value="{{bloc.form.id}}" name="IdForm">
<div class="fieldset-form fieldset-form1">
<div class="row">
{% for key,item in bloc.form.data %}
{% if key < 9 %}
{{form.renderFromDevis(item)}}
{% endif %}
{% endfor %}
</div>
</div>
<div class="fieldset-form fieldset-form2">
<div class="row">
{% for key,item in bloc.form.data %}
{% if key >= 9 %}
{{form.renderFromDevis(item)}}
{% endif %}
{% endfor %}
</div>
</div>
{% for item in bloc.form.data|filter(u => u.type == "button") %}
<div class="d-flex justify-content-center w-100">
<div class="form-group button-submit">
<div class="position-relative">
<button class="btn btn-primary" type="submit">{{item.label}}</button>
</div>
</div>
</div>
{% endfor %}
<input type="hidden" id="{{bloc.form.id}}_captcha" name="g-recaptcha-response" value="">
</form>
</div>
{% endif %}
{# {{ render(controller('App\\Controller\\Front\\FunctionController::renderContacts')) }} #}
</div>
</div>
</section>