mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 14:32:19 +01:00 
			
		
		
		
	My team
This commit is contained in:
		@@ -26,13 +26,17 @@
 | 
			
		||||
            </dl>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {% if user.admin or user in team.tournament.organizers.all %}
 | 
			
		||||
        {% 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 user.admin and team.invalid %}
 | 
			
		||||
                {% if team.invalid %}
 | 
			
		||||
                    <form method="post">
 | 
			
		||||
                        {% csrf_token %}
 | 
			
		||||
                        <button name="delete" class="btn btn-danger">{% trans "Delete team" %}</button>
 | 
			
		||||
                        {% if user.admin %}
 | 
			
		||||
                            <button name="delete" class="btn btn-danger">{% trans "Delete team" %}</button>
 | 
			
		||||
                        {% elif team == user.team %}
 | 
			
		||||
                            <button name="leave" class="btn btn-danger">{% trans "Leave this team" %}</button>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                    </form>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user