fix: hide called off assignments from timeline, adjust status colors
This commit is contained in:
@@ -35,7 +35,7 @@ class TimelineItem
|
||||
->setDateTo($dateTo)
|
||||
->setJobProfile($assignment->getJobProfile()->getName())
|
||||
->setDateRange(sprintf('%s - %s', $dateFrom->format('d.m.Y'), $dateTo->format('d.m.Y')))
|
||||
->setStatus($assignment->getStatus())
|
||||
->setStatus($assignment->getStaffingStatus())
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,11 @@ class TimelineService
|
||||
$rows = [];
|
||||
|
||||
foreach ($assignments as $assignment) {
|
||||
// exclude called off assignments
|
||||
// TODO: refactor filtering to do this on database level
|
||||
if (Assignment::STATUS_CALLED_OFF === $assignment->getStatus()) {
|
||||
continue;
|
||||
}
|
||||
$destination = $assignment->getDestination();
|
||||
$hotelCode = $destination->getHotelCodeNormalized();
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
{% macro cell(item, colspan) %}
|
||||
<td class="{{ html_classes('border border-gray-700', {
|
||||
'bg-gray-100': item.type == 'assignment',
|
||||
'bg-gray-100': item.type == 'assignment' and item.status in ['unstaffed'],
|
||||
'bg-blue-300': item.type == 'assignment' and item.status in ['staffing', 'partly_staffed'],
|
||||
'bg-blue-500 text-gray-50': item.type == 'disposition' and item.status in ['new', 'checking_contract'],
|
||||
'bg-green-500 text-gray-50': item.type == 'disposition' and item.status in ['confirmed', 'ended', 'checking_invoice', 'completed'],
|
||||
}) }}" colspan="{{ colspan }}">
|
||||
@@ -14,6 +15,7 @@
|
||||
class="inline-block text-xs font-semibold">
|
||||
{{ item.jobProfile }}
|
||||
</a>
|
||||
<span>|</span>
|
||||
<button type="button"
|
||||
class="flex items-center space-x-2"
|
||||
title="Teamer:inneninfo {{ item.teamerName }}"
|
||||
@@ -111,6 +113,9 @@
|
||||
<div class="flex items-center space-x-2 bg-gray-100 px-4 py-1">
|
||||
<span>Bedarf</span>
|
||||
</div>
|
||||
<div class="flex items-center space-x-2 bg-blue-300 px-4 py-1">
|
||||
<span>in Bewerbung</span>
|
||||
</div>
|
||||
<div class="flex items-center space-x-2 bg-blue-500 text-gray-50 px-4 py-1">
|
||||
<span>in Bearbeitung</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user