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> <h5 class="subtitle">Schichten</h5>
<div class="columns is-multiline"> <div class="columns is-multiline">
{% for reg in helper.shiftregistration_set.all %} {% 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 %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -6,7 +6,9 @@
<h3 class="title">{{ title }}</h3> <h3 class="title">{{ title }}</h3>
<div class="columns is-multiline"> <div class="columns is-multiline">
{% for shift in object_list %} {% 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 %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -17,7 +17,9 @@
{% for shift in next_shifts %} {% for shift in next_shifts %}
<div class="column is-one-quarter"> <div class="column is-one-quarter">
<h5 class="subtitle">{{ shift.room.name }}</h5> <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> </div>
{% endfor %} {% endfor %}
</div> </div>