mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 05:42:23 +00:00
Only display final selection after publishing results
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
1493df0078
commit
7a004596ca
@ -106,7 +106,7 @@
|
||||
<li>
|
||||
<strong>{{ participation.team }} :</strong> {{ note|floatformat }}
|
||||
{% if participation.final %}
|
||||
<span class="badge badge-sm bg-warning">
|
||||
<span class="badge badge-sm text-bg-warning">
|
||||
<i class="fas fa-medal"></i>
|
||||
{% trans "Selected for final tournament" %}
|
||||
</span>
|
||||
@ -114,7 +114,7 @@
|
||||
{% if user.registration.is_admin or user.registration in tournament.organizers.all %}
|
||||
{% if team_selectable_for_final == participation %}
|
||||
<a href="{% url 'participation:select_team_final' pk=tournament.pk participation_id=participation.pk %}"
|
||||
class="badge badge-sm bg-success">
|
||||
class="badge badge-sm text-bg-success">
|
||||
<i class="fas fa-medal"></i>
|
||||
{% trans "Select for final tournament" %}
|
||||
</a>
|
||||
|
@ -621,7 +621,8 @@ class TournamentDetailView(MultiTableMixin, DetailView):
|
||||
context["available_notes_1"] = all(pool.results_available for pool in self.object.pools.filter(round=1).all())
|
||||
context["available_notes_2"] = all(pool.results_available for pool in self.object.pools.filter(round=2).all())
|
||||
|
||||
if not self.object.final and notes and self.request.user.registration.is_volunteer:
|
||||
if not self.object.final and notes and context["available_notes_2"] \
|
||||
and self.request.user.registration.is_volunteer:
|
||||
context["team_selectable_for_final"] = next(participation for participation, _note in sorted_notes
|
||||
if not participation.final)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user