mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
modifiy sidebar code
This commit is contained in:
@ -73,6 +73,12 @@
|
||||
<div class='main body wrapper container-fluid inventree-body'>
|
||||
|
||||
<div class='row flex-nowrap inventree-body'>
|
||||
<div class='col-auto px-1 sidetree-wrapper'>
|
||||
<div id='sidetree' class='collapse collapse-horizontal show border-end' style='display: none;'>
|
||||
{% block sidetree %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<div class='col-auto px-1 sidebar-wrapper'>
|
||||
<div id='sidebar' class='collapse collapse-horizontal show border-end' style='display: none;'>
|
||||
<div id='sidebar-nav' class='list-group text-sm-start'>
|
||||
@ -80,7 +86,7 @@
|
||||
{% block sidebar %}
|
||||
<!-- Sidebar goes here -->
|
||||
{% endblock %}
|
||||
{% include "sidebar_toggle.html" %}
|
||||
{% include "sidebar_toggle.html" with target='sidebar' %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<a href="#" id='sidebar-toggle' class="list-group-item sidebar-list-group-item border-end-0 d-inline-block text-truncate sidebar-toggle" data-bs-parent="#sidebar" style='display: none;'>
|
||||
<i class="bi bi-bootstrap"></i><span id='sidebar-toggle-icon' class='sidebar-item-icon fas fa-chevron-left'></span>
|
||||
<a href="#" id='{{ target }}-toggle' class="list-group-item {{ target }}-list-group-item border-end-0 d-inline-block text-truncate {{ target }}-toggle" data-bs-parent="#{{ target }}" style='display: none;'>
|
||||
<i class="bi bi-bootstrap"></i><span id='{{ target }}-toggle-icon' class='{{ target }}-item-icon fas fa-chevron-left'></span>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user