Added a simple system for treeViews.

This commit is contained in:
Jan Böhmer 2019-03-24 15:25:40 +01:00
parent 22c836096e
commit 715de5b67c
13 changed files with 509 additions and 33 deletions

View file

@ -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 %}