2
0
Fork 0

only display help button on team fallback page if shift is not full

This commit is contained in:
Andreas (@xAndy) Zimmermann 2023-05-15 16:33:17 +02:00
parent a1c1e93ef7
commit fcff581d33
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ Diese Schichtzuteilung wurde maschinell erstellt und ist auch ohne Unterschrift
{% endfor %}
</td>
<td>
<a class="button is-primary is-small mr-0" href="{% url 'shift' shift.id %}">Mithelfen</a>
{% if shift.registration_count < shift.required_helpers|default:shift.room.required_helpers %}
<a class="button is-primary is-small mr-0" href="{% url 'shift' shift.id %}">Mithelfen</a>
{% endif %}
</td>
</tr>
{% endfor %}