{% extends 'base.html.twig' %} {% block localstyle %} {% if type is defined and type=="pdf" %} body, .card, .card-header { background-color:transparent !important; } {% endif %} .card-header { font-size: 15px; text-align: center; } .flot-chart { display: block; height: 250px; } .flot-chart-content { width: 250px; height: 250px; } .average { font-size: 50px; text-align: center; height: 250px; padding-top:80px; } .breakpage{ page-break-before: always; } .legend { position: relative; left: 150px; } {% endblock %} {% block body %}
{% if not type is defined or type !="pdf" %} Retour Exporter en CSV Exporter en PDF {% endif %}

Synthèse

Titre de l'enquête = {{ quest.title }}
Nombre de réponses récoltées = {% set nbvote=0 %} {% for guest in questguests %} {% if not guest.questvotes is empty %} {% set nbvote=nbvote+1 %} {% endif %} {% endfor %} {{nbvote}}
{% if quest.description %}
{{ quest.description|raw }} {% endif %}
{% for graph in graphs %} {% if graph.datatype == "donut" %}
{{ graph.dataname}}
{% else %}
{{ graph.dataname}}
{{ (graph.data.total / graph.data.count)|number_format(2, ',', ' ') }} / {{graph.datamax}}
{% endif %} {% endfor %}
{% for guest in questguests %} {% if not guest.questvotes is empty %}

Réponse n° {{loop.index}}

{% if not quest.anonymous %}email = {{ guest.email }}{%endif%}
{% for vote in guest.questvotes %}
{{vote.questoption.name}}
{% if vote.questoption.type == "10" %}
{% if vote.vote == 0 %}non {% else %}oui {% endif %}
{% endif %} {% if vote.questoption.type == "20" %}
{% if vote.vote == 0 %}non {% elseif vote.vote== 1 %}oui {% else %}peut-être {% endif %}
{% endif %} {% if vote.questoption.type == "30" %}
{% if vote.vote == 0 %}non {% elseif vote.vote== 1 %}oui {% else %}en partie {% endif %}
{% endif %} {% if vote.questoption.type == "40" %}
{% if vote.vote == 0 %}Très Satisfait {% elseif vote.vote== 1 %}Satisfait {% elseif vote.vote== 2 %}Peu Satisfait {% else %}Insatisfait {% endif %}
{% endif %} {% if vote.questoption.type == "50" %} {% endif %} {% if vote.questoption.type == "60" %}
{{ vote.vote }} / 5
{% endif %} {% if vote.questoption.type == "70" %}
{{ vote.vote }} / 10
{% endif %} {% if vote.questoption.type == "80" %}
{{ vote.vote }} / 20
{% endif %} {% if vote.questoption.type == "90" %} {{ vote.vote|raw }} {% endif %} {% if vote.questoption.type == "100" %} {{ vote.vote|raw }} {% endif %} {% if vote.questoption.type == "110" %}
{{ vote.vote|raw }}
{% endif %}
{% endfor %}
{% endif %} {% endfor %}
{% endblock %} {% block localjavascript %} $(document).ready(function() { {% for graph in graphs %} {% if graph.datatype == "donut" %} var data = [ {% for data in graph.data %} { label: "{{ data.label}}", data: {{ data.total }}, color: "{{ data.color }}", }, {% endfor %} ]; var plotObj = $.plot($("#floatdonut{{ graph.datacode }}"), data, { series: { pie: { show: true } }, }); {% endif %} {% endfor %} }); {% endblock %}