2
0
Fork 0

show team backups in team shift lists

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-05-20 21:53:21 +02:00
parent c94074ccd7
commit 05d633b826
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,9 @@
<strong>Beginn:</strong> {{ shift.start_at }}<br> <strong>Beginn:</strong> {{ shift.start_at }}<br>
<strong>Dauer:</strong> {{ shift.duration }}<br> <strong>Dauer:</strong> {{ shift.duration }}<br>
<strong>Belegung:</strong> {{ shift.shiftregistration_set.count }}/{{ shift.required_helpers|default:shift.room.required_helpers }} <strong>Belegung:</strong> {{ shift.shiftregistration_set.count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}
{% if shift.teambackup_set.all.count %}<br>
<strong>Backup Teammitglied(er): {%for member in shift.teambackup_set.all%}{{member.name}}, {%endfor%}</strong>
{% endif %}
</div> </div>
<div class="is-flex is-justify-content-end"> <div class="is-flex is-justify-content-end">
<a class="button is-info is-small" href="{% url 'team:shift' shift.id %}">Details</a> <a class="button is-info is-small" href="{% url 'team:shift' shift.id %}">Details</a>

View File

@ -7,6 +7,9 @@
<div class="content"> <div class="content">
<em>{{ shift.description|linebreaksbr }}</em> <em>{{ shift.description|linebreaksbr }}</em>
</div> </div>
{% endif %}
{% if shift.teambackup_set.all.count %}<br>
<strong>Backup Teammitglied(er): {%for member in shift.teambackup_set.all%}{{member.name}}, {%endfor%}</strong>
{% endif %} {% endif %}
{% if shift.shiftregistration_set.all %} {% if shift.shiftregistration_set.all %}
<h5 class="subtitle">Helfer*innen</h5> <h5 class="subtitle">Helfer*innen</h5>