mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Allow to configure which tree panels are shown in the sidebar
Adresses issue #158
This commit is contained in:
parent
2486bc5d7b
commit
cb16819340
4 changed files with 15 additions and 5 deletions
|
@ -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>
|
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue