mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Use turbo-frames for treeview navigation in Admin Pages.
This commit is contained in:
parent
8cf131a7d6
commit
12e7ed9165
1 changed files with 152 additions and 146 deletions
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue