{% extends '@EasyAdmin/page/content.html.twig' %} {% block content_title %} Demandes Clients {% endblock %} {% block page_title %} {{ block('content_title') }} {% endblock %} {% block main %}
| Demande | Nombre de demandes | {% for etat in status %}{{etat.label}} | {% endfor %}
|---|---|---|
| {{ form['title'] }} | {{ form['count'] }} | {% for etat in status %} {% set count = 0 %}{% for metat in etats %} {% if metat.title == form['title'] and metat.label == etat.label %} {% set count = metat.counte %} {% endif %} {% endfor %} {{ count }}> | {% endfor %}
| N° | Demande | IP, Adresse MAC | Entreprise | Client | Etat | Contact | Date de création | Action | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ loop.index }} | {{ form.title }} | {{ form.ip }}
{{ form.mac }} |
{% set jsondata = form.getJsonData() %}
{% if jsondata[form.title] is defined %}
{% for stepTitle in jsondata[form.title]|keys %}
{% for nomQuestion in jsondata[form.title][stepTitle]|keys %}
{% if 'entreprise_' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %}
{% if 'dénomination' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %}
Nom :
{% elseif 'effectif' in nomQuestion and jsondata[form.title][stepTitle][nomQuestion]['reponse'] is not empty %}
Membre :
{% endif %}
{{jsondata[form.title][stepTitle][nomQuestion]['reponse']}}
|
{% 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 form.etat != null %}
{{ form.etat.label }} |
{% else %}
Demande initial | {% endif %} {% if form.historyContacts|length > 0 %}
{{ form.historyContacts[0].contact.label }} |
{% else %}
{% endif %} | {{ form.dateCreation|date('d-m-Y') }} {{ form.dateCreation|date('H:i:s') }} | {#{{ form.dateCreation|date('H:i:s') }} | #}Détails du formulaire |