nineskeletor/templates/Documentcategory/render.html.twig

10 lines
532 B
Twig

<div class="itemcat list-group-item mb-3" data-id="{{ documentcategory.id }}" >
<a href="{{ path('app_'~access~'_documentcategory_update',{id:documentcategory.id})}}">{{ documentcategory.label }}</a>
<ul class="p-3 list-sort">
{% if not documentcategory.childs is empty %}
{% for documentcategory in documentcategory.childs %}
{{ render(path("app_"~access~"_documentcategory_render",{id:documentcategory.id,access:access})) }}
{% endfor %}
{% endif %}
</ul>
</div>