chore(layout): improve team members on shift detail page
This commit is contained in:
parent
20309244f3
commit
207d03abeb
|
@ -37,7 +37,7 @@ Diese Schichtzuteilung wurde maschinell erstellt und ist auch ohne Unterschrift
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for assignment in assignments %}
|
{% for assignment in assignments %}
|
||||||
{% with assignment.shift as shift %}
|
{% with assignment.shift as shift %}
|
||||||
<tr{% if shift.registration_count == shift.required_helpers|default:shift.room.required_helpers or assignment.was_full%} class="has-text-grey" style="text-decoration: line-through;"{% endif %}>
|
<tr{% if shift.registration_count == shift.required_helpers|default:shift.room.required_helpers or assignment.was_full %} class="has-text-grey" style="text-decoration: line-through;"{% endif %}>
|
||||||
<td>{{ shift.start_at }}</td>
|
<td>{{ shift.start_at }}</td>
|
||||||
<td>{{ shift.duration|duration }}</td>
|
<td>{{ shift.duration|duration }}</td>
|
||||||
<td>{{ shift.room.name }} </td>
|
<td>{{ shift.room.name }} </td>
|
||||||
|
|
|
@ -41,17 +41,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if shift.event.fallbackassignment_set.count > 0 %}
|
||||||
|
<h5 class="subtitle">Teammitglieder</h5>
|
||||||
|
<div class="columns is-multiline">
|
||||||
|
{% for fallback in shift.event.fallbackassignment_set.all %}
|
||||||
<div class="column is-one-quarter">
|
<div class="column is-one-quarter">
|
||||||
<div class="box">
|
<div class="box{% if fallback.was_full %} has-text-grey" style="text-decoration: line-through;{% endif %}">
|
||||||
<div class="is-flex is-align-items-center is-justify-content-space-between mb-2">
|
{{ fallback.team_member.name }}
|
||||||
Teammitglieder: {%for e in shift.event.fallbackassignment_set.all%}{% if not e.was_full %}{{e.team_member.name}}, {% endif %}{%endfor%}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<h5 class="subtitle">Helfer*in eintragen</h5>
|
<h5 class="subtitle">Helfer*in eintragen</h5>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
Loading…
Reference in New Issue