2
0
Fork 0

make whole shift container clickable in team backend

This commit is contained in:
Andreas (@xAndy) Zimmermann 2023-05-07 02:14:47 +02:00
parent 63925b2893
commit f9da38e4f1
3 changed files with 9 additions and 3 deletions

View File

@ -10,7 +10,9 @@
<h5 class="subtitle">Schichten</h5>
<div class="columns is-multiline">
{% for reg in helper.shiftregistration_set.all %}
{% include 'partials/shift_list_item.html' with shift=reg.shift %}
<a class="" href="{% url 'team:shift' reg.shift.id %}">
{% include 'partials/shift_list_item.html' with shift=reg.shift %}
</a>
{% endfor %}
</div>
{% endblock %}

View File

@ -6,7 +6,9 @@
<h3 class="title">{{ title }}</h3>
<div class="columns is-multiline">
{% for shift in object_list %}
{% include "partials/shift_list_item.html" %}
<a class="" href="{% url 'team:shift' shift.id %}">
{% include "partials/shift_list_item.html" %}
</a>
{% endfor %}
</div>
{% endblock %}

View File

@ -17,7 +17,9 @@
{% for shift in next_shifts %}
<div class="column is-one-quarter">
<h5 class="subtitle">{{ shift.room.name }}</h5>
{% include "partials/shift_box.html" %}
<a class="" href="{% url 'team:shift' shift.id %}">
{% include "partials/shift_box.html" %}
</a>
</div>
{% endfor %}
</div>