pdf

{% set jsondata = mform.getJsonData() %} {% set form = mform %}
{{projectConfig.home_title_prefix}}
  • Adresse: {{projectConfig.contact_1_adresse}} {% if (projectConfig.contact_2_adresse != '') %}
    Adresse n°2: {{projectConfig.contact_2_adresse}} {% endif %} {% if (projectConfig.contact_3_adresse != '') %}
    Adresse n°3: {{projectConfig.contact3_adresse}} {% endif %}

  • Téléphone: {{projectConfig.contact_1_tel}} {% if (projectConfig.contact_2_tel != '') %}
    Téléphone n°2: {{projectConfig.contact_2_tel}} {% endif %} {% if (projectConfig.contact_3_tel != '') %}
    Téléphone n°3: {{projectConfig.contact_3_tel}} {% endif %}
  • Email: {{projectConfig.contact_1_email}} {% if (projectConfig.contact_2_email != '') %}
    Email n°2: {{projectConfig.contact_2_email}} {% endif %} {% if (projectConfig.contact_3_email != '') %}
    Email n°3: {{projectConfig.contact_3_email}} {% endif %}
  • Date: {{ mform.dateCreation|date('d/m/Y') }}-{{ mform.dateCreation|date('H:i:s') }}
  • pdf n°: {{ mform.id }}
Client
{% if jsondata[form.title] is defined %} {% for stepTitle in jsondata[form.title]|keys %}
    {% for nomQuestion in jsondata[form.title][stepTitle]|keys %}
  • {% if 'contact_' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %} {% if 'prenom' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %} Prénom : {% elseif 'nom' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %} Nom : {% elseif 'tel' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %} Téléphone : {% elseif 'email' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %} Email : {% endif %} {{jsondata[form.title][stepTitle][nomQuestion]['reponse']}} {% endif %}
  • {% endfor %}
{% endfor %} {% endif %}
{% if jsondata[mform.title] is defined %} {% set total = 0 %} {% set encaissement_en_ligne = '' %} {% set url_paiement_en_ligne = '' %} {% for stepTitle in jsondata[mform.title]|keys %} {% if stepTitle == 'recap' %} {% set label = jsondata[mform.title][stepTitle]['recap-label'] %} {% set idrecap = jsondata[mform.title][stepTitle]['recap-id'] %} {% set resrecap = jsondata[mform.title][stepTitle]['recap-res'] %} {% set uniterecap = jsondata[mform.title][stepTitle]['recap-unite'] %} {% if jsondata[mform.title][stepTitle]['recap-encaissement-en-ligne'] is defined %} {% set encaissement_en_ligne = jsondata[mform.title][stepTitle]['recap-encaissement-en-ligne'] %} {% if jsondata[mform.title][stepTitle]['recap-url-paiement'] is defined %} {% set url_paiement_en_ligne = jsondata[mform.title][stepTitle]['recap-url-paiement'] %} {% endif %} {% endif %} {% for label_recap in label %} {% set indexLabelRecap = loop.index %} {% set showTable = false %} {% for stepTitle in jsondata[mform.title]|keys %} {% if stepTitle != 'recap' %} {% for question in jsondata[mform.title][stepTitle]|keys %} {% if 'contact_' not in question and 'entreprise_' not in question and 'recap-' not in question %} {% set type = jsondata[mform.title][stepTitle][question]['type'] %} {% set reponse = jsondata[mform.title][stepTitle][question]['reponse'] %} {% set recapId = jsondata[mform.title][stepTitle][question]['recap-id'] %} {% if recapId == idrecap[indexLabelRecap-1] %} {% if type == 'radio' or type == 'checkbox' %} {% if reponse|length > 0 %} {% set showTable = true %} {% endif %} {% elseif type == 'list' %} {% if reponse[loop.index - 1] != 0 %} {% set showTable = true %} {% endif %} {% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% if showTable %}
{{label_recap}}:
{% for stepTitle in jsondata[mform.title]|keys %} {% if stepTitle != 'recap' %} {% for question in jsondata[mform.title][stepTitle]|keys %} {% if 'contact_' not in question and 'entreprise_' not in question and 'recap-' not in question %} {% set type = jsondata[mform.title][stepTitle][question]['type'] %} {% set recapId = jsondata[mform.title][stepTitle][question]['recap-id'] %} {% set options = jsondata[mform.title][stepTitle][question]['options'] %} {% set optionslabels = jsondata[mform.title][stepTitle][question]['optionslabel'] %} {# {% set optionsImage = jsondata[mform.title][stepTitle][question]['optionsImage'] %} #} {# {% set imageHttpServer = jsondata[mform.title][stepTitle][question]['imageHttpServer'] %} #} {% set optionsUnite = jsondata[mform.title][stepTitle][question]['optionsUnite'] %} {% set reponse = jsondata[mform.title][stepTitle][question]['reponse'] %} {% if type == 'radio' and recapId == idrecap[indexLabelRecap-1] %} {% for option in options %} {% if reponse == option %} {# {% set image = changeLink(optionsImage[loop.index - 1], imageHttpServer[loop.index - 1]) %} #} {# {% set stateimg = image|fileExists %} #} {% endif %} {% endfor %} {% elseif type == 'checkbox' and recapId == idrecap[indexLabelRecap-1] %} {% for option in options %} {% if option in reponse %} {# {% set image = changeLink(optionsImage[loop.index - 1], imageHttpServer[loop.index - 1]) %} #} {# {% set stateimg = image|fileExists %} #} {% endif %} {% endfor %} {% elseif type == 'list' and recapId == idrecap[indexLabelRecap-1] %} {% for option in options %} {% if reponse[loop.index - 1] != 0 %} {# {% set image = changeLink(optionsImage[loop.index - 1], imageHttpServer[loop.index - 1]) %} #} {# {% set stateimg = image|fileExists %} #} {% set resmult = reponse[loop.index - 1] * optionslabels[loop.index - 1] %} {% endif %} {% endfor %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% if resrecap[loop.index-1] != "" and resrecap[loop.index-1] != 0 %} {% set total = total + resrecap[loop.index-1] %} {% endif %}
Designation Quantité Prix Unitaire
{{ uniterecap[loop.index-1] }}
Montant
{{ uniterecap[loop.index-1] }}

{{option}}

{% if optionslabels[loop.index - 1] != "" %}

1

{% endif %}

{{ optionslabels[loop.index - 1]|number_format(2, '.') }}

{{ optionslabels[loop.index - 1]|number_format(2, '.') }}

{{option}}

{% if optionslabels[loop.index - 1] != "" %}

1

{% endif %}

{{ optionslabels[loop.index - 1]|number_format(2, '.') }}

{{ optionslabels[loop.index - 1]|number_format(2, '.') }}

{{option}}

{{reponse[loop.index - 1]}}

{{ optionslabels[loop.index - 1] }}  {{ optionsUnite }}

{{resmult}}  {{ optionsUnite }}

Total: {{ resrecap[loop.index-1] }} {{ uniterecap[loop.index-1] }}
{% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}
Total à payer: {{total}} €
{% if encaissement_en_ligne == '1' %} {% if url_paiement_en_ligne != '' %} Payer en ligne {% endif %} {% endif %}