53 lines
2.0 KiB
HTML
53 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% load shift_extras %}
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3 class="title">{{ title }}</h3>
|
|
<table class="table is-fullwidth">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Schicht</th>
|
|
<th>Startzeit</th>
|
|
<th>Dauer</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for reg in page_obj %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'team:helper' reg.helper.pk %}">
|
|
{{ reg.helper.name }} ({{ reg.helper.phone|stringformat:"s"|slice:"-3:" }})
|
|
{% if asta_required and not reg.helper.asta_confirmed %}
|
|
<span class="tag is-danger">AStA</span>
|
|
{% endif %}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a{% if reg.shift.event.calendar.needs_fallback %} class="is-underlined"{% endif %} href="{% url 'team:shift_room' reg.shift.room.pk %}">{{ reg.shift.room }}</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>
|
|
<div class="buttons">
|
|
<form action="{% url 'team:checkin' reg.pk %}" method="post">
|
|
{% csrf_token %}
|
|
<button class="button is-success is-small mr-2" type="submit">Als angekommen markieren</button>
|
|
</form>
|
|
<form action="{% url 'team:mark_as_failed' reg.pk %}" method="post">
|
|
{% csrf_token %}
|
|
<button class="button is-danger is-small mr-2" type="submit">Nicht angetreten</button>
|
|
</form>
|
|
<a class="button is-link is-small" href="tel:{{ reg.helper.phone }}">📞</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% include "pagination.html" %}
|
|
{% endblock %}
|