Reorganized treeview code for AdminPage treeview.

This commit is contained in:
Jan Böhmer 2022-07-31 15:54:27 +02:00
parent fc90259032
commit 5ec87f911b
4 changed files with 26 additions and 21 deletions

View file

@ -1,3 +1,5 @@
{% import "components/tree_macros.html.twig" as tree %}
{% extends "main_card.html.twig" %}
{% block title %}
@ -23,7 +25,7 @@
<div class="col-sm-4">
<turbo-frame id="admin-tree-frame" target="admin-content-frame" data-turbo-action="advance">
{% include "elements/_tree_view.html.twig" %}
{{ tree.treeview(entity) }}
</turbo-frame>
</div>