mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 20:28: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 %}
|
{% block card_content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-sm-4">
|
<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" %}
|
{% include "elements/_tree_view.html.twig" %}
|
||||||
|
</turbo-frame>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
<turbo-frame id="admin-content-frame" data-turbo-action="advance">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>
|
||||||
{% if entity.ID %}
|
{% if entity.ID %}
|
||||||
|
@ -178,7 +181,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
{# Include turbo control things, so we can still control page title and reloading #}
|
||||||
|
{% include "_turbo_control.html.twig" %}
|
||||||
|
</turbo-frame>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue