Allow to configure which tree panels are shown in the sidebar

Adresses issue #158
This commit is contained in:
Jan Böhmer 2022-08-04 23:13:43 +02:00
parent 2486bc5d7b
commit cb16819340
4 changed files with 15 additions and 5 deletions

View file

@ -2,8 +2,8 @@
<div class="nav flex-column">
{{ tree.treeview_sidebar('sidebar-panel-1', 'categories') }}
{{ tree.treeview_sidebar('sidebar-panel-2', 'devices') }}
{{ tree.treeview_sidebar('sidebar-panel-3', 'tools') }}
{% for item in sidebar_items %}
{{ tree.treeview_sidebar('sidebar-panel-' ~ loop.index, item) }}
<div class="mb-2"></div>
{% endfor %}
</div>

View file

@ -4,7 +4,7 @@
['categories', path('tree_category_root'), 'category.labelp'],
['locations', path('tree_location_root'), 'storelocation.labelp'],
['footprints', path('tree_footprint_root'), 'footprint.labelp'],
['manufacturer', path('tree_manufacturer_root'), 'manufacturer.labelp'],
['manufacturers', path('tree_manufacturer_root'), 'manufacturer.labelp'],
['suppliers', path('tree_supplier_root'), 'supplier.labelp'],
['devices', path('tree_device_root'), 'device.labelp'],
['tools', path('tree_tools'), 'tools.label'],