feat: legend of status colors in assignment overview
This commit is contained in:
@@ -474,14 +474,20 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this->availableDispositions === $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isUnstaffed(): bool
|
||||
{
|
||||
return 0 === $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isPartlyStaffed(): bool
|
||||
{
|
||||
return $this->availableDispositions > $this->dispositions->count()
|
||||
&& 0 === $this->applications->count();
|
||||
&& 0 < $this->dispositions->count();
|
||||
}
|
||||
|
||||
public function isStaffing(): bool
|
||||
{
|
||||
return 0 === $this->dispositions->count() && 0 < $this->applications->count();
|
||||
return $this->availableDispositions > $this->dispositions->count()
|
||||
&& 0 < $this->applications->count();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,6 +198,34 @@
|
||||
{{ knp_pagination_render(pagination) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center space-x-2 pb-8 -mt-4">
|
||||
<div class="flex items-center">
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-gray-100 mr-1">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
<span>= unbesetzt</span>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-green-500 mr-1">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
<span>= voll besetzt</span>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-yellow-500 mr-1">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
<span>= teilweise besetzt</span>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<svg viewBox="0 0 5 5" class="h-4 w-4 fill-current text-blue-500 mr-1">
|
||||
<circle cx="3" cy="3" r="2" />
|
||||
</svg>
|
||||
<span>= in Bewerbung</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_administrative_assignment_create') }}" class="btn">
|
||||
Neu
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user