You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

24 lines
734 B
HTML

{% extends "helper_base.html" %}
{% block title %}Freie Schichten{% endblock %}
{% block content %}
{% if current_shift %}
<h2>Aktuelle Schicht</h2>
{{ current_shift.room.name }} {{ current_shift.start_at }}<a href="{% url 'shift' current_shift.id %}">Details</a>
{% endif %}
{% if my_shifts %}
<h2>Meine Schichten</h2>
<ul>
{% for reg in my_shifts %}
<li>{{ reg.shift.room.name }} {{ reg.shift.start_at }}<a href="{% url 'shift' reg.shift.id %}">Details</a></li>
{% endfor %}
</ul>
{% endif %}
<h2>Freie Schichten:</h2>
<ul>
{% for shift in free_shifts %}
<li>{{ shift.room.name }} {{ shift.start_at }}<a href="{% url 'shift' shift.id %}">Mithelfen</a></li>
{% endfor %}
</ul>
{% endblock %}