Merge branch '746-resq-2-0-final' into 768-add-timer-in-jo-list-to-show-real-time-dispatch-time
# Conflicts: # templates/job-order/list.all.html.twig
This commit is contained in:
commit
e070d6df18
2 changed files with 86 additions and 78 deletions
|
|
@ -243,12 +243,20 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
else
|
else
|
||||||
$row['assignor'] = $orow->getAssignedBy()->getFullName();
|
$row['assignor'] = $orow->getAssignedBy()->getFullName();
|
||||||
|
|
||||||
|
// not removing this since this might be used by other pages since getRows is also used by other pages
|
||||||
$hub_facilitated = $orow->getFacilitatedBy();
|
$hub_facilitated = $orow->getFacilitatedBy();
|
||||||
if ($hub_facilitated == null)
|
if ($hub_facilitated == null)
|
||||||
$row['hub_facilitated'] = '';
|
$row['hub_facilitated'] = '';
|
||||||
else
|
else
|
||||||
$row['hub_facilitated'] = $orow->getFacilitatedBy()->getName();
|
$row['hub_facilitated'] = $orow->getFacilitatedBy()->getName();
|
||||||
|
|
||||||
|
// get the assigned hub, if any
|
||||||
|
$assigned_hub = $orow->getHub();
|
||||||
|
if ($assigned_hub == null)
|
||||||
|
$row['assigned_hub'] = '';
|
||||||
|
else
|
||||||
|
$row['assigned_hub'] = $orow->getHub()->getName();
|
||||||
|
|
||||||
$rows[] = $row;
|
$rows[] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,12 +130,12 @@
|
||||||
title: 'Customer Area'
|
title: 'Customer Area'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'hub_facilitated',
|
field: 'assigned_hub',
|
||||||
title: 'Battery Facilitated By'
|
title: 'Assigned Hub'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'type',
|
field: 'service_type',
|
||||||
title: 'Schedule'
|
title: 'Transaction Type'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'date_schedule',
|
field: 'date_schedule',
|
||||||
|
|
@ -183,7 +183,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
return dateEnd ? '<span class="m-badge m-badge--wide m--font-boldest ' + (incrementing ? 'm-badge--warning" data-incrementing="1"' : 'm-badge--success"') + '>' + timeDiff(dateAssign, dateEnd) + '</span>' : '-';
|
return dateEnd ? '<span class="m-badge m-badge--wide m--font-boldest ' + (incrementing ? 'm-badge--warning" data-incrementing="1"' : 'm-badge--success"') + '>' + timeDiff(dateAssign, dateEnd) + '</span>' : '-';
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'Actions',
|
field: 'Actions',
|
||||||
|
|
@ -197,7 +197,7 @@
|
||||||
|
|
||||||
return actions;
|
return actions;
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
search: {
|
search: {
|
||||||
onEnter: false,
|
onEnter: false,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue