mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Refactored sidebar for "purchase order"
This commit is contained in:
parent
00a0311c63
commit
1b5428718e
@ -1,36 +0,0 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% load static %}
|
|
||||||
{% load inventree_extras %}
|
|
||||||
{% load status_codes %}
|
|
||||||
|
|
||||||
<ul class='list-group'>
|
|
||||||
<li class='list-group-item'>
|
|
||||||
<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 "Purchase Order Line Items" %}'>
|
|
||||||
<a href='#' id='select-order-items' class='nav-toggle'>
|
|
||||||
<span class='fas fa-list-ol side-icon'></span>
|
|
||||||
{% trans "Order Items" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class='list-group-item' title='{% trans "Received Stock Items" %}'>
|
|
||||||
<a href='#' id='select-received-items' class='nav-toggle'>
|
|
||||||
<span class='fas fa-sign-in-alt side-icon'></span>
|
|
||||||
{% trans "Received Items" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class='list-group-item' title='{% trans "Purchase Order Attachments" %}'>
|
|
||||||
<a href='#' id='select-order-attachments' class='nav-toggle'>
|
|
||||||
<span class='fas fa-paperclip side-icon'></span>
|
|
||||||
{% trans "Attachments" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class='list-group-item' title='{% trans "Notes" %}'>
|
|
||||||
<a href='#' id='select-order-notes' class='nav-toggle'>
|
|
||||||
<span class='fas fa-clipboard side-icon'></span>
|
|
||||||
{% trans "Notes" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
8
InvenTree/order/templates/order/po_sidebar.html
Normal file
8
InvenTree/order/templates/order/po_sidebar.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
{% load inventree_extras %}
|
||||||
|
|
||||||
|
{% include "sidebar_item.html" with label='order-items' text="Line Items" icon="fa-list-ol" %}
|
||||||
|
{% include "sidebar_item.html" with label='received-items' text="Received Stock" icon="fa-sign-in-alt" %}
|
||||||
|
{% include "sidebar_item.html" with label='order-attachments' text="Attachments" icon="fa-paperclip" %}
|
||||||
|
{% include "sidebar_item.html" with label='order-notes' text="Notes" icon="fa-clipboard" %}
|
@ -6,8 +6,8 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load markdownify %}
|
{% load markdownify %}
|
||||||
|
|
||||||
{% block menubar %}
|
{% block sidebar %}
|
||||||
{% include 'order/po_navbar.html' %}
|
{% include 'order/po_sidebar.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
@ -89,11 +89,6 @@
|
|||||||
|
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
enableNavbar({
|
|
||||||
label: 'po',
|
|
||||||
toggleId: '#po-menu-toggle',
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#edit-notes').click(function() {
|
$('#edit-notes').click(function() {
|
||||||
constructForm('{% url "api-po-detail" order.pk %}', {
|
constructForm('{% url "api-po-detail" order.pk %}', {
|
||||||
fields: {
|
fields: {
|
||||||
@ -249,9 +244,6 @@ loadPurchaseOrderLineItemTable('#po-line-table', {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
});
|
});
|
||||||
|
|
||||||
attachNavCallbacks({
|
enableSidebar('purchaseorder');
|
||||||
name: 'purchase-order',
|
|
||||||
default: 'order-items'
|
|
||||||
});
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user