add asta warning for team, highlight critical shifts

pull/1/head
parent ab249df9ff
commit dbadb54321

@ -1,4 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load shift_extras %}
{% block title %}{{ title }}{% endblock %} {% block title %}{{ title }}{% endblock %}
@ -10,15 +11,28 @@
<th>Name</th> <th>Name</th>
<th>Schicht</th> <th>Schicht</th>
<th>Startzeit</th> <th>Startzeit</th>
<th>Dauer</th>
<th>Aktionen</th> <th>Aktionen</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for reg in object_list %} {% for reg in object_list %}
<tr> <tr>
<td>{{ reg.helper.name }} ({{ reg.helper.phone|stringformat:"s"|slice:"-3:" }})</td> <td>
<td>{{ reg.shift.room }}</td> <a href="{% url 'team:helper' reg.helper.pk %}">
{{ reg.helper.name }} ({{ reg.helper.phone|stringformat:"s"|slice:"-3:" }})
{% if not reg.helper.asta_confirmed %}
<span class="tag is-danger">AStA</span>
{% endif %}
</a>
</td>
<td>
<span class="{{ reg.shift.event.calendar.needs_fallback|yesno:"is-underlined," }}">
<a href="{% url 'team:shift_room' reg.shift.room.pk %}">{{ reg.shift.room }}</a>
</span>
</td>
<td><a href="{% url 'team:shift' reg.shift.pk %}">{{ reg.shift.start_at }}</a></td> <td><a href="{% url 'team:shift' reg.shift.pk %}">{{ reg.shift.start_at }}</a></td>
<td><a href="{% url 'team:shift' reg.shift.pk %}">{{ reg.shift.duration|duration }}</a></td>
<td> <td>
<a class="button is-success is-small" href="{% url 'team:checkin' reg.pk %}">Als angekommen markieren</a> <a class="button is-success is-small" href="{% url 'team:checkin' reg.pk %}">Als angekommen markieren</a>
<a class="button is-danger is-small" href="{% url 'team:mark_as_failed' reg.pk %}">Nicht angetreten</a> <a class="button is-danger is-small" href="{% url 'team:mark_as_failed' reg.pk %}">Nicht angetreten</a>

@ -3,7 +3,7 @@
{% if shift.deleted %} {% if shift.deleted %}
<em>gelöscht</em><br> <em>gelöscht</em><br>
{% endif %} {% endif %}
<strong>Ort:</strong> {{ shift.room.name }}<br> <strong>Ort:</strong> <span class="{{ shift.event.calendar.needs_fallback|yesno:"is-underlined," }}">{{ shift.room.name }}</span><br>
<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.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }} <strong>Belegung:</strong> {{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }}

Loading…
Cancel
Save