Use turbo-frames for treeview navigation in Admin Pages.

This commit is contained in:
Jan Böhmer 2022-07-30 14:23:27 +02:00
parent 8cf131a7d6
commit 12e7ed9165

View file

@ -20,12 +20,15 @@
{% block card_content %}
<div class="row">
<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" %}
</turbo-frame>
</div>
<div class="col-sm-8">
<turbo-frame id="admin-content-frame" data-turbo-action="advance">
<fieldset>
<legend>
{% if entity.ID %}
@ -178,7 +181,10 @@
{% endif %}
</div>
</fieldset>
</div>
{# Include turbo control things, so we can still control page title and reloading #}
{% include "_turbo_control.html.twig" %}
</turbo-frame>
</div>
</div>
{% endblock %}