2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

WIP - loading graph

This commit is contained in:
Oliver
2022-02-26 18:36:25 +11:00
parent e162432fde
commit 8587a59ec1
8 changed files with 152 additions and 14395 deletions

View File

@ -425,6 +425,11 @@
{% block js_ready %}
{{ block.super }}
// Load the "scheduling" tab
onPanelLoad('scheduling', function() {
loadPartSchedulingChart('part-schedule-chart', {{ part.pk }});
});
// Load the "suppliers" tab
onPanelLoad('suppliers', function() {

View File

@ -1,4 +1,6 @@
{% load i18n %}
{% load inventree_extras %}
<canvas id='schedule-chart' width='100%' height='400'></canvas>
<div id='part-schedule' style='max-height: 300px;'>
<canvas id='part-schedule-chart' width='100%' style='max-height: 300px;'></canvas>
</div>