modifiy sidebar code

This commit is contained in:
Matthias 2021-12-06 01:33:41 +01:00
parent 502d701a70
commit 49f9cc7edc
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
15 changed files with 10955 additions and 3 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -5,6 +5,7 @@
{% settings_value "PART_INTERNAL_PRICE" as show_internal_price %}
{% settings_value 'PART_SHOW_RELATED' as show_related %}
{% include "sidebar_toggle.html" with target="#sidetree" %}
{% trans "Parameters" as text %}
{% include "sidebar_item.html" with label="part-parameters" text=text icon="fa-th-list" %}
{% if part.is_template %}

View File

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

View File

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