fix: hide called off assignments from timeline, adjust status colors

This commit is contained in:
Björn Fromme
2025-03-27 09:08:29 +01:00
parent 28b757fb15
commit 80e57d148f
3 changed files with 12 additions and 2 deletions
@@ -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>