Add basic team dashboard
parent
a43fc266af
commit
e007e67e83
@ -0,0 +1,27 @@
|
||||
{% extends "autoscroll.html" %}
|
||||
|
||||
{% block everything %}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<h3 class="title" style="background:var(--background);margin:0 -1rem;padding:1rem;position:sticky;top:0;">Teamschichten für {{ today|date:"l, d. F Y" }}</h3>
|
||||
<table class="table">
|
||||
<thead style="background:inherit;position:sticky;top:4rem;">
|
||||
<tr>
|
||||
<th>Schicht</th>
|
||||
<th>Startzeit</th>
|
||||
<th>Teammitglied(er)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for shift in team_shifts %}
|
||||
<tr>
|
||||
<td>{{ shift.room.name }}</td>
|
||||
<td>{{ shift.start_at }}</td>
|
||||
<td>{% for fa in shift.fallbackassignment_set.all %}{{ fa.team_member.name }}{% if not forloop.last %}, {% endif %}{% endfor %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue