{% extends 'base.html.twig' %} {% macro renderCategoryTree(categorie, level) %}
  • #{{ categorie.id }} {{ categorie.titre }}
    {% if app.user.aDroit('categorie_modification') %} {% endif %} {% if app.user.aDroit('categorie_suppression') %} {% endif %}
    {% if categorie.filles|length > 0 %} {% endif %}
  • {% endmacro %} {% block body %}

    CATEGORIES
    {% if app.user.aDroit('categorie_ajout') %} Nouvelle catégorie {% endif %}
      {% for categorie in categories %} {% if not categorie.parent %} {{ _self.renderCategoryTree(categorie, 0) }} {% endif %} {% endfor %}
    {% endblock %}