2
0
Fork 0

show team members their shift duration

This commit is contained in:
Andreas (@xAndy) Zimmermann 2023-05-13 16:35:14 +02:00
parent 3f07acfbd5
commit 9ea7f05766
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}Teamschichten{%endblock%} {% block title %}Teamschichten{%endblock%}
{% load shift_extras %}
{% block body %} {% block body %}
<section class="section"> <section class="section">
@ -10,6 +11,7 @@
<thead> <thead>
<tr> <tr>
<th>Wann</th> <th>Wann</th>
<th>Wie lange</th>
<th>Wo</th> <th>Wo</th>
<th>Helfer:innen</th> <th>Helfer:innen</th>
<th>Team-Mitglieder</th> <th>Team-Mitglieder</th>
@ -19,6 +21,7 @@
{% for shift in shifts %} {% for shift in shifts %}
<tr {% if shift.registration_count == shift.required_helpers|default:shift.room.required_helpers %}style="opacity: 0.2"{% endif %}> <tr {% if shift.registration_count == shift.required_helpers|default:shift.room.required_helpers %}style="opacity: 0.2"{% endif %}>
<td>{{ shift.start_at }}</td> <td>{{ shift.start_at }}</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>{{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}</td>
<td> <td>