Commit 07ec0182 authored by Georgios Dagkakis's avatar Georgios Dagkakis

decorative enhancements to JS gantt

parent 2ecc1fd9
......@@ -49,7 +49,7 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=order_id,
text=order.get('name', order_id),
type='project',
open=True)
open=False)
break
# add the component in the task_dict
task_dict[element['id']] = dict(
......@@ -57,7 +57,8 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
text=componentId,
type='project',
open=False,
parent=order_id)
parent=order_id,
color='DodgerBlue')
k=1
......@@ -94,6 +95,7 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
exitTime).strftime(date_format),
open=False,
entranceTime=entranceTime,
color='cyan',
duration=exitTime-entranceTime,
)
......
......@@ -42,7 +42,8 @@ class JSOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=operatorId,
text=operatorId,
type='operator',
open=False)
open=False,
color='DodgerBlue')
for record in schedule:
entranceTime=record['entranceTime']
......@@ -73,6 +74,7 @@ class JSOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
exitTime).strftime(date_format),
open=False,
entranceTime=entranceTime,
color='cyan',
duration=exitTime-entranceTime,
)
if task_id == 'off-shift':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment