fix: show the whole timeline to staff who are also house managers
This commit is contained in:
1 parent
8f4c4d8267
commit
74080b0488
5 files changed
+134
-6
No files matched your search
@@ -4,7 +4,7 @@
|
||||
|
||||
{% set state_labels = { open: 'offen', pending: 'in Bewerbung', staffed: 'besetzt' } %}
|
||||
|
||||
{% macro bar(item, row, state_labels) %}
|
||||
{% macro bar(item, row, state_labels, house_manager_only) %}
|
||||
{% set is_disposition = item.type == 'disposition' %}
|
||||
<div class="timeline-bar timeline-bar--{{ item.state }}"
|
||||
style="grid-row: {{ row }}; grid-column: {{ item.column + 1 }} / span {{ item.span }}"
|
||||
@@ -13,7 +13,7 @@
|
||||
{% if not is_disposition and item.state == 'open' %}
|
||||
<span class="font-bold uppercase">offen</span>
|
||||
{% endif %}
|
||||
{% if is_granted('ROLE_HOUSE_MANAGER') %}
|
||||
{% if house_manager_only %}
|
||||
<span class="truncate">{{ item.jobProfile }}</span>
|
||||
{% else %}
|
||||
<a href="{{ path('app_administrative_assignment_detail', { 'uuid': item.assignmentUuid, 'r': return_url() }) }}"
|
||||
@@ -121,7 +121,7 @@
|
||||
{% for row in house.rows %}
|
||||
{% set row_number = loop.index %}
|
||||
{% for item in row %}
|
||||
{{ _self.bar(item, row_number, state_labels) }}
|
||||
{{ _self.bar(item, row_number, state_labels, houseManagerOnly) }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user