mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
Added a simple system for treeViews.
This commit is contained in:
parent
22c836096e
commit
715de5b67c
13 changed files with 509 additions and 33 deletions
|
@ -309,6 +309,24 @@
|
|||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
<script>
|
||||
$.getJSON("{{ path("tree_tools") }}",null, function (data) {
|
||||
$('#tree-tools').treeview({
|
||||
data: data,
|
||||
showIcon: false
|
||||
});
|
||||
});
|
||||
|
||||
$.getJSON("{{ path("tree_category", {"id": 1}) }}",null, function (data) {
|
||||
$('#tree-categories').treeview({
|
||||
data: data,
|
||||
showIcon: false,
|
||||
enableLinks: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue