2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

More sidebar action

This commit is contained in:
Oliver
2021-10-29 01:20:24 +11:00
parent 1b5428718e
commit 80a41affc1
11 changed files with 31 additions and 121 deletions

View File

@ -3,20 +3,9 @@
{% load i18n %}
{% load static %}
{% block menubar %}
<ul class='list-group'>
<li class='list-group-item'>
<a href='#' id='part-menu-toggle'>
<span class='menu-tab-icon fas fa-expand-arrows-alt'></span>
</a>
</li>
<li class='list-group-item' title='{% trans "Return To BOM" %}'>
<a href='{% url "part-detail" part.id %}' id='select-upload-file' class='nav-toggle'>
<span class='fas fa-undo side-icon'></span>
{% trans "Return To BOM" %}
</a>
</li>
</ul>
{% block sidebar %}
{% url "part-detail" part.id as url %}
{% include "sidebar_link.html" with url=url text="Return to BOM" icon="fa-undo" %}
{% endblock %}
{% block page_content %}

View File

@ -325,9 +325,4 @@
$('#view-list').hide();
}
attachNavCallbacks({
name: 'partcategory',
default: 'part-stock'
});
{% endblock %}

View File

@ -5,8 +5,8 @@
{% load crispy_forms_tags %}
{% load markdownify %}
{% block menubar %}
{% include 'part/navbar.html' %}
{% block sidebar %}
{% include 'part/sidebar.html' %}
{% endblock %}
{% block page_content %}

View File

@ -3,20 +3,9 @@
{% load i18n %}
{% load static %}
{% block menubar %}
<ul class='list-group'>
<li class='list-group-item'>
<a href='#' id='part-menu-toggle'>
<span class='menu-tab-icon fas fa-expand-arrows-alt'></span>
</a>
</li>
<li class='list-group-item' title='{% trans "Return To Parts" %}'>
<a href='{% url "part-index" %}' id='select-upload-file' class='nav-toggle'>
<span class='fas fa-undo side-icon'></span>
{% trans "Return To Parts" %}
</a>
</li>
</ul>
{% block sidebar %}
{% url 'part-index' as url %]
{% include "sidebar_link.html" with url=url text="Return to Parts" icon="fa-undo" %}
{% endblock %}
{% block content %}
@ -70,9 +59,6 @@
{% block js_ready %}
{{ block.super }}
enableNavbar({
label: 'part',
toggleId: '#part-menu-toggle',
});
enableSidebar('partupload');
{% endblock %}

View File

@ -13,10 +13,6 @@
{% endif %}
{% endblock %}
{% block sidenav %}
<div id='part-tree'></div>
{% endblock %}
{% block breadcrumbs %}
{% if part %}
{% include "part/cat_link.html" with category=part.category part=part %}