{% block body %}
    {% for theme in supplierByQuestionsByThemes %}
        <tr class="questionnaire_contributor_{{ idAO }}_{{ contrib }}detail detail_ligne">
            <td colspan="100%" class="fixed-side fixed-bottom noBorderTop borderRight borderBottom auto_width" style="min-width:150px;font-weight:bold;">
                {{ theme.LIB_THEME }}
            </td> 
        </tr>
        {% if theme.questionsList %}
            {% for question in theme.questionsList %}
                <tr class="questionnaire_contributor_{{ idAO }}_{{ contrib }}detail detail_ligne">
                    <td class="auto_width fixed-side borderRight borderBottom" style="min-width:150px;">
                        {{ question.LIB_QUEST }}
                    </td> 
                    {% for supplier in question.suppliers %}
                        <td class="borderRight borderBottom auto_width" style="text-align:center;min-width:150px;">
                            {% if supplier.TERMINE | boolSql %}
                                {% if question.TYPE_REP == 'L' %}
                                    {{ supplier.REPONSE | boolTrad }}
                                {% elseif question.TYPE_REP == 'N' %}
                                    {{ supplier.REPONSE | prix }}  
                                {% else %}
                                    {{ supplier.REPONSE }}
                                {% endif %}
                                {{ ' (' ~ supplier.NOTE ~ '/10)' }}
                                {% if supplier.COMMENTAIRE != '' %}
                                    <a class="commentaire white-tooltip">
                                        <span class="infos_tooltip left">
                                            {{ shortLibelle(supplier.COMMENTAIRE, 250) }}
                                        </span>
                                    </a>
                                {% endif %}
                            {% else %}
                                {{ 'Sans réponse' | trad ~ ' (0/10)' }}
                            {% endif %}
                        </td>   
                    {% endfor %}   
                </tr>
            {% endfor %}
        {% endif %}
    {% endfor %}
{% endblock %}