2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-22 04:36:30 +00:00

Expose more status code data to the templates

- Status codes are now exposed globally to every page
- Much simplified so wow
- https://stackoverflow.com/questions/3221592/how-to-pass-common-dictionary-data-to-every-page-in-django
This commit is contained in:
Oliver Walters
2020-04-24 09:18:37 +10:00
parent 2c9b112562
commit b45fec221c
11 changed files with 45 additions and 36 deletions
InvenTree

@@ -1,14 +1,12 @@
{% load i18n %}
{% load status_codes %}
{% load_status_codes %}
<script type='text/javascript'>
{% include "status_codes.html" with label='stock' options=stock_status_codes %}
{% include "status_codes.html" with label='build' options=build_status_codes %}
{% include "status_codes.html" with label='purchaseOrder' options=purchase_order_status_codes %}
{% include "status_codes.html" with label='salesOrder' options=sales_order_status_codes %}
{% include "status_codes.html" with label='stock' options=StockStatus.list %}
{% include "status_codes.html" with label='build' options=BuildStatus.list %}
{% include "status_codes.html" with label='purchaseOrder' options=PurchaseOrderStatus.list %}
{% include "status_codes.html" with label='salesOrder' options=SalesOrderStatus.list %}
function getAvailableTableFilters(tableKey) {