<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        {{ css }}
    </style>
</head>
<body>
<table class="table-search">
    <thead>
    <tr>
        <th>Catégorie</th>
        <th>Thématique</th>
        <th>Contribution</th>
        <th>Lieu</th>
    </tr>
    </thead>
    <tbody>
    {% for result in resultArray %}
        <tr>
            <td>
                {{ result }}
            </td>
            <td>
                {{ result.thematic }}
            </td>
            <td>
                {{ result.subthematic }}
            </td>
            <td>
                {% if result.individualData is not empty %}
                    {{ result.individualData.territory }}
                {% elseif result.collectifData is not empty %}
                    {{ result.collectifData.territory }}
                {% endif %}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
</body>
</html>