mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Basic right-side menu for part
This commit is contained in:
parent
68f24e97ac
commit
2e87499fa5
@ -691,9 +691,8 @@ input[type="submit"] {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: 0.1s; /* 0.5 second transition effect to slide in the sidenav */
|
transition: 0.1s; /* 0.5 second transition effect to slide in the sidenav */
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
display: inline-block;
|
|
||||||
background-color: #fff; /* Black*/
|
background-color: #fff; /* Black*/
|
||||||
display: 'none';
|
//display: 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidenav li {
|
.sidenav li {
|
||||||
@ -705,6 +704,7 @@ input[type="submit"] {
|
|||||||
.sidenav-left {
|
.sidenav-left {
|
||||||
left: 0px;
|
left: 0px;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidenav-left .badge {
|
.sidenav-left .badge {
|
||||||
@ -714,10 +714,15 @@ input[type="submit"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidenav-right {
|
.sidenav-right {
|
||||||
|
width: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidenav-right svg {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.container > aside,
|
.container > aside,
|
||||||
.container > main {
|
.container > main {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
59
InvenTree/part/templates/part/navbar.html
Normal file
59
InvenTree/part/templates/part/navbar.html
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
{% load inventree_extras %}
|
||||||
|
|
||||||
|
<ul class='list-group'>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-expand-arrows-alt'></span> <b>{% trans "Part" %}</b>
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item' title='{% trans "Details" %}'>
|
||||||
|
<a href='#'>
|
||||||
|
<span class='fas fa-info-circle'></span> {% trans "Details" %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-tasks'></span> {% trans "Parameters" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-shapes'></span> {% trans "Variants" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-boxes'></span> {% trans "Stock" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-sign-out-alt'></span> {% trans "Allocations" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-list'></span> {% trans "Bill of Materials" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-tools'></span> {% trans "Build Orders" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-layer-group'></span> {% trans "Used In" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-building'></span> {% trans "Suppliers" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-shopping-cart'></span> {% trans "Purchase Orders" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-dollar-sign'></span> {% trans "Sale Price" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-truck'></span> {% trans "Sales Orders" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-vial'></span> {% trans "Tests" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-random'></span> {% trans "Related Parts" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-paperclip'></span> {% trans "Attacments" %}
|
||||||
|
</li>
|
||||||
|
<li class='list-group-item'>
|
||||||
|
<span class='fas fa-clipboard'></span> {% trans "Notes" %}
|
||||||
|
</li>
|
||||||
|
</ul>
|
@ -39,7 +39,6 @@ InvenTree | {% trans "Part List" %}
|
|||||||
);
|
);
|
||||||
|
|
||||||
$("#toggle-part-tree").click(function() {
|
$("#toggle-part-tree").click(function() {
|
||||||
console.log('toggle side navver');
|
|
||||||
toggleSideNav("#sidenav-left");
|
toggleSideNav("#sidenav-left");
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load inventree_extras %}
|
{% load inventree_extras %}
|
||||||
|
|
||||||
|
{% block menubar %}
|
||||||
|
{% include "part/navbar.html" %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if part.virtual %}
|
{% if part.virtual %}
|
||||||
@ -183,7 +187,8 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<div class='container-fluid'>
|
<div class='container-fluid'>
|
||||||
{% block details %}
|
|
||||||
|
{% block details %}
|
||||||
|
|
||||||
<!-- Specific part details go here... -->
|
<!-- Specific part details go here... -->
|
||||||
|
|
||||||
@ -195,6 +200,8 @@
|
|||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
|
enableRightNavbar();
|
||||||
|
|
||||||
enableDragAndDrop(
|
enableDragAndDrop(
|
||||||
'#part-thumb',
|
'#part-thumb',
|
||||||
"{% url 'part-image-upload' part.id %}",
|
"{% url 'part-image-upload' part.id %}",
|
||||||
|
@ -88,12 +88,13 @@ InvenTree
|
|||||||
<!-- Each view fills in here.. -->
|
<!-- Each view fills in here.. -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class='sidenav sidenav-right' id='sidenav-right'>
|
<div class='sidenav sidenav-right' id='sidenav-right'>
|
||||||
{% block menubar %}
|
{% block menubar %}
|
||||||
<!-- Menubar code here -->
|
<!-- Menubar code here -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block post_content %}
|
{% block post_content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user