chore(fallback): do not show registration count for team-only shifts
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2025-05-18 14:48:00 +02:00
parent 1dc92cba19
commit 2bb564ebce
1 changed files with 7 additions and 1 deletions

View File

@ -73,7 +73,13 @@ Diese Schichtzuteilung wurde maschinell erstellt und ist auch ohne Unterschrift
<td>{{ shift.start_at }}</td> <td>{{ shift.start_at }}</td>
<td>{{ shift.duration|duration }}</td> <td>{{ shift.duration|duration }}</td>
<td>{{ shift.room.name }} </td> <td>{{ shift.room.name }} </td>
<td>{{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}</td> <td>
{% if assignment.restricted %}
Nur Team
{% else %}
{{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}
{% endif %}
</td>
<td> <td>
{% for fa in shift.fallbackassignment_set.all %}{% if fa.traded_to %}{{ fa.traded_to.name }}{% else %}{{ fa.team_member.name }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %} {% for fa in shift.fallbackassignment_set.all %}{% if fa.traded_to %}{{ fa.traded_to.name }}{% else %}{{ fa.team_member.name }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}
</td> </td>