mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 08:22:10 +01:00 
			
		
		
		
	Add & join teams
This commit is contained in:
		@@ -15,6 +15,9 @@
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'trigram'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6">{{ team.trigram }}</dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'access code'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6">{{ team.access_code }}</dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'tournament'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6"><a href="{% url "tournament:detail" pk=team.tournament.pk %}">{{ team.tournament }}</a></dd>
 | 
			
		||||
 | 
			
		||||
@@ -23,12 +26,17 @@
 | 
			
		||||
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'participants'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6">{% autoescape off %}{{ team.linked_participants|join:", " }}{% endautoescape %}</dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'validation status'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6">{{ team.get_validation_status_display }}</dd>
 | 
			
		||||
            </dl>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {% if user.admin or user in team.tournament.organizers.all or team == user.team %}
 | 
			
		||||
            <div class="card-footer text-center">
 | 
			
		||||
                <a href="{% url "tournament:team_update" pk=team.pk %}"><button class="btn btn-secondary">{% trans "Edit team" %}</button></a>
 | 
			
		||||
                {% if team.invalid or user.organizes %}
 | 
			
		||||
                    <a href="{% url "tournament:team_update" pk=team.pk %}"><button class="btn btn-secondary">{% trans "Edit team" %}</button></a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                {% if team.invalid %}
 | 
			
		||||
                    <form method="post">
 | 
			
		||||
                        {% csrf_token %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user