<h5>Thématiques</h5>
{% for tag in tagList %}
    <div class="checkbox">
        <input type="checkbox" id="tag_{{ tag.id }}" value="{{ tag.keyword }}" {% if tag.keyword in paramTag %}checked="checked" {% endif %} name="tags[]" class="tags">
        <label for="tag_{{ tag.id }}">{{ tag.keyword|raw }}</label>

        {% if tagsListChildren[tag.id] is defined and tagsListChildren[tag.id] %}
            <span class="btn-toggle icon-down-open-1"></span>
            <div class="sous-thematiques">
                {% for child in tagsListChildren[tag.id] %}
                    <div class="checkbox">
                        <input type="checkbox" id="tag_{{ child.id }}" value="{{ child.keyword }}" {% if child.keyword in paramTag %}checked="checked" {% endif %} name="tags[]">
                        <label for="tag_{{ child.id }}">{{ child.keyword|raw }}</label>
                    </div>
                {% endfor %}
            </div>
        {% endif %}
    </div>
{% endfor %}
