mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
More sidebar action
This commit is contained in:
parent
1b5428718e
commit
80a41affc1
@ -6,8 +6,8 @@
|
|||||||
InvenTree | {% trans "Manufacturer Part" %}
|
InvenTree | {% trans "Manufacturer Part" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
{% include "company/manufacturer_part_navbar.html" %}
|
{% include "company/manufacturer_part_sidebar.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
@ -153,11 +153,6 @@ src="{% static 'img/blank_image.png' %}"
|
|||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
enableNavbar({
|
|
||||||
label: 'manufacturer-part',
|
|
||||||
toggleId: '#manufacturer-part-menu-toggle'
|
|
||||||
});
|
|
||||||
|
|
||||||
function reloadParameters() {
|
function reloadParameters() {
|
||||||
$("#parameter-table").bootstrapTable("refresh");
|
$("#parameter-table").bootstrapTable("refresh");
|
||||||
}
|
}
|
||||||
@ -315,9 +310,6 @@ $('#delete-part').click(function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
attachNavCallbacks({
|
enableSidebar('manufacturerpart');
|
||||||
name: 'manufacturerpart',
|
|
||||||
default: 'parameters'
|
|
||||||
});
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -1,41 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
|
|
||||||
<ul class='list-group'>
|
|
||||||
|
|
||||||
<li class='list-group-item'>
|
|
||||||
<a href='#' id='manufacturer-part-menu-toggle'>
|
|
||||||
<span class='menu-tab-icon fas fa-expand-arrows-alt'></span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class='list-group-item' title='{% trans "Parameters" %}'>
|
|
||||||
<a href='#' id='select-parameters' class='nav-toggle'>
|
|
||||||
<span class='fas fa-th-list sidebar-icon'></span>
|
|
||||||
{% trans "Parameters" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class='list-group-item' title='{% trans "Supplier Parts" %}'>
|
|
||||||
<a href='#' id='select-supplier-parts' class='nav-toggle'>
|
|
||||||
<span class='fas fa-building sidebar-icon'></span>
|
|
||||||
{% trans "Suppliers" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
{% comment "for later" %}
|
|
||||||
<li class='list-group-item {% if tab == "stock" %}active{% endif %}' title='{% trans "Manufacturer Part Stock" %}'>
|
|
||||||
<a href='#'>
|
|
||||||
<span class='fas fa-boxes sidebar-icon'></span>
|
|
||||||
{% trans "Stock" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class='list-group-item {% if tab == "orders" %}active{% endif %}' title='{% trans "Manufacturer Part Orders" %}'>
|
|
||||||
<a href='#'>
|
|
||||||
<span class='fas fa-shopping-cart sidebar-icon'></span>
|
|
||||||
{% trans "Orders" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endcomment %}
|
|
||||||
|
|
||||||
</ul>
|
|
@ -0,0 +1,6 @@
|
|||||||
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
{% load inventree_extras %}
|
||||||
|
|
||||||
|
{% include "sidebar_item.html" with label='parameters' text="Parameters" icon="fa-th-list" %}
|
||||||
|
{% include "sidebar_item.html" with label='supplier-parts' text="Supplier Parts" icon="fa-building" %}
|
@ -7,8 +7,8 @@
|
|||||||
{% inventree_title %} | {% trans "Supplier Part" %}
|
{% inventree_title %} | {% trans "Supplier Part" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
{% include "company/supplier_part_navbar.html" %}
|
{% include "company/supplier_part_sidebar.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
@ -308,12 +308,6 @@ $("#item-create").click(function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
enableNavbar({
|
|
||||||
label: 'supplier-part',
|
|
||||||
toggleId: '#supplier-part-menu-toggle'
|
|
||||||
})
|
|
||||||
|
|
||||||
$('#order-part, #order-part2').click(function() {
|
$('#order-part, #order-part2').click(function() {
|
||||||
launchModalForm(
|
launchModalForm(
|
||||||
"{% url 'order-parts' %}",
|
"{% url 'order-parts' %}",
|
||||||
@ -344,9 +338,6 @@ $('#delete-part').click(function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
attachNavCallbacks({
|
enableSidebar('supplierpart');
|
||||||
name: 'supplierpart',
|
|
||||||
default: 'stock'
|
|
||||||
});
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -0,0 +1,7 @@
|
|||||||
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
{% load inventree_extras %}
|
||||||
|
|
||||||
|
{% include "sidebar_item.html" with label='stock' text="Stock Items" icon="fa-boxes" %}
|
||||||
|
{% include "sidebar_item.html" with label='purchase-orders' text="Purchase Orders" icon="fa-shopping-cart" %}
|
||||||
|
{% include "sidebar_item.html" with label='pricing' text="Supplier Part Pricing" icon="fa-dollar-sign" %}
|
@ -3,20 +3,9 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
<ul class='list-group'>
|
{% url "po-detail" order.id as url %}
|
||||||
<li class='list-group-item'>
|
{% include "sidebar_item.html" with url=url text="Return to Orders" icon="fa-undo" %}
|
||||||
<a href='#' id='po-menu-toggle'>
|
|
||||||
<span class='menu-tab-icon fas fa-expand-arrows-alt'></span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class='list-group-item' title='{% trans "Return To Order" %}'>
|
|
||||||
<a href='{% url "po-detail" order.id %}' id='select-upload-file' class='nav-toggle'>
|
|
||||||
<span class='fas fa-undo side-icon'></span>
|
|
||||||
{% trans "Return To Order" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
@ -3,20 +3,9 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
<ul class='list-group'>
|
{% url "part-detail" part.id as url %}
|
||||||
<li class='list-group-item'>
|
{% include "sidebar_link.html" with url=url text="Return to BOM" icon="fa-undo" %}
|
||||||
<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>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
@ -325,9 +325,4 @@
|
|||||||
$('#view-list').hide();
|
$('#view-list').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
attachNavCallbacks({
|
|
||||||
name: 'partcategory',
|
|
||||||
default: 'part-stock'
|
|
||||||
});
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
{% load markdownify %}
|
{% load markdownify %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
{% include 'part/navbar.html' %}
|
{% include 'part/sidebar.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
@ -3,20 +3,9 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
<ul class='list-group'>
|
{% url 'part-index' as url %]
|
||||||
<li class='list-group-item'>
|
{% include "sidebar_link.html" with url=url text="Return to Parts" icon="fa-undo" %}
|
||||||
<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>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@ -70,9 +59,6 @@
|
|||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
enableNavbar({
|
enableSidebar('partupload');
|
||||||
label: 'part',
|
|
||||||
toggleId: '#part-menu-toggle',
|
|
||||||
});
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
@ -13,10 +13,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block sidenav %}
|
|
||||||
<div id='part-tree'></div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{% if part %}
|
{% if part %}
|
||||||
{% include "part/cat_link.html" with category=part.category part=part %}
|
{% include "part/cat_link.html" with category=part.category part=part %}
|
||||||
|
Loading…
Reference in New Issue
Block a user