make whole shift container clickable in team backend

pull/1/head
parent 63925b2893
commit f9da38e4f1

@ -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 %}
<a class="" href="{% url 'team:shift' reg.shift.id %}">
{% include 'partials/shift_list_item.html' with shift=reg.shift %} {% include 'partials/shift_list_item.html' with shift=reg.shift %}
</a>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}

@ -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 %}
<a class="" href="{% url 'team:shift' shift.id %}">
{% include "partials/shift_list_item.html" %} {% include "partials/shift_list_item.html" %}
</a>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}

@ -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>
<a class="" href="{% url 'team:shift' shift.id %}">
{% include "partials/shift_box.html" %} {% include "partials/shift_box.html" %}
</a>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>

Loading…
Cancel
Save