{% extends '@EasyAdmin/page/content.html.twig' %} {% block content_title %} Réponse du client {% endblock %} {% block page_title %} {{ block('content_title') }} {% endblock %} {% block main %}
  • Titre > {{ mform.title }}

  • Date > {{ mform.dateCreation|date('d-m-Y') }} {{ mform.dateCreation|date('H:i:s') }}

Réponses liées au questionnaire

{% set jsondata = mform.getJsonData() %} {% if jsondata[mform.title] is defined %} {% for stepTitle in jsondata[mform.title]|keys %}

{% if stepTitle != 'recap' %} {{ stepTitle }} {% endif %}

{% 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 options = jsondata[mform.title][stepTitle][question]['options'] %} {% if jsondata[mform.title][stepTitle][question]['optionslabel'] is defined %} {% set optionslabels = jsondata[mform.title][stepTitle][question]['optionslabel'] %} {% endif %} {% set reponse = jsondata[mform.title][stepTitle][question]['reponse'] %} {% if type == 'radio' %} {% for option in options %}
{% if reponse == option %} {% else %} {% endif %}
{% endfor %} {% elseif type == 'checkbox' %} {% for option in options %}
{% if option in reponse %} {% else %} {% endif %}
{% endfor %} {% elseif type == 'list' %} {% for option in options %}
{% endfor %} {% elseif type == 'textarea' %}
{% else %} {% endif %} {% endif %} {% endfor %}
{% endfor %} {% endif %}

Récapitulatif

{% set jsondata = mform.getJsonData() %} {% if jsondata[mform.title] is defined %} {% set encaissement_en_ligne = '' %} {% set payment_result = [] %} {% set uniterecap =[] %} {% 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'] %} {% endif %} {% if jsondata[mform.title][stepTitle]['recap-unite'] is defined %} {% set uniterecap = jsondata[mform.title][stepTitle]['recap-unite'] %} {% endif %} {% if jsondata[mform.title][stepTitle]['recap-payment-result'] is defined %} {% set payment_result = jsondata[mform.title][stepTitle]['recap-payment-result'] %} {% endif %} {% if encaissement_en_ligne == '1' %} Statut du paiment : {% if mform.statutPaiement is not null and mform.statutPaiement == true %} Recap des paiements : {% elseif mform.statutPaiement is not null and mform.statutPaiement == false %} {% else %} {% endif %}
{% if mform.montant is defined and mform.montant is not empty %} {% for key,value in mform.montant %} {{key}} : {{value}} eur {% endfor %} {% endif %} {% endif %} {% for label_recap in label %} {% set indexLabelRecap = loop.index %}
{{label_recap}}
{% if resrecap[loop.index-1] != 0 %} {{ resrecap[loop.index-1] }} {{ uniterecap[loop.index-1] }} {% endif %}
{% 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 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 %}
{{option}}
{{ optionslabels[loop.index - 1] }}
{% endif %} {% endfor %} {% elseif type == 'checkbox' and recapId == idrecap[indexLabelRecap-1] %} {% for option in options %} {% if option in reponse %}
{{option}}
{{ optionslabels[loop.index - 1] }}
{% endif %} {% endfor %} {% elseif type == 'list' and recapId == idrecap[indexLabelRecap-1] %} {% for option in options %}
{{option}}
{% set resmult = reponse[loop.index - 1] * optionslabels[loop.index - 1] %}
{{reponse[loop.index - 1]}} * {{ optionslabels[loop.index - 1] }} = {{resmult}}  {{ optionsUnite }}
{% endfor %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{# #} {% endfor %} {% endif %} {% endfor %} {% endif %}

Etat

{% for etat in status %}
{% if mform.etat == etat %} {% else %} {% endif %}
{% endfor %}
{% if status|length > 0 %}
{% endif %}

Contact

{% for contact in contacts %}
{% if mform.historyContacts|length > 0 %} {% if mform.historyContacts[0].contact == contact %} {% else %} {% endif %} {% else %} {% endif %}
{% endfor %}
{% if contacts|length > 0 %}
{% endif %}

{% if mform.historyFormEtats|length > 1 %} {% for historyStatut in mform.historyFormEtats %} {% if historyStatut.utilisateur != null %} {% endif %} {% endfor %}
Etat Utilisateur Date Notes
{{ historyStatut.formEtat.label }} {{ historyStatut.utilisateur.email }} {{ historyStatut.dateCreation|date('d-m-Y') }} {{ historyStatut.dateCreation|date('H:i:s') }} {% if historyStatut.notes != null %} {{ historyStatut.notes }} {% endif %}
{% endif %} Demande initial

{% if mform.historyContacts|length > 0 %} {% for historyContact in mform.historyContacts %} {% if historyContact.utilisateur != null %} {% if historyContact.notes != null %} {% else %} {% endif %} {% endif %} {% endfor %} {% endif %}
Etat Utilisateur Date Notes
{{ historyContact.contact.label }} {{ historyContact.utilisateur.email }} {{ historyContact.dateCreation|date('d-m-Y') }} {{ historyContact.dateCreation|date('H:i:s') }} {{ historyContact.notes }}
{% endblock %} {% block body_javascript %} {{ parent() }} {% endblock %}