mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 06:22:13 +01:00 
			
		
		
		
	Teams can draw a problem
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -119,15 +119,30 @@
 | 
			
		||||
                            </h2>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <div class="d-grid">
 | 
			
		||||
                            <div class="btn-group">
 | 
			
		||||
                                <button class="btn btn-success disabled">
 | 
			
		||||
                                    {% trans "Accept" %}
 | 
			
		||||
                                </button>
 | 
			
		||||
                                <button class="btn btn-danger disabled">
 | 
			
		||||
                                    {% trans "Decline" %}
 | 
			
		||||
                        <div id="draw-problem-{{ tournament.id }}"
 | 
			
		||||
                                {% if tournament.draw.get_state != 'WAITING_DRAW_PROBLEM' %}{% if user.registration.team.participation != tournament.draw.current_round.current_pool.current_team.participation and not user.is_volunteer %}class="d-none"{% endif %}{% endif %}>
 | 
			
		||||
                            <div class="text-center">
 | 
			
		||||
                                <button class="btn btn-lg" style="font-size: 100pt" onclick="drawProblem({{ tournament.id }})">
 | 
			
		||||
                                    🗳️
 | 
			
		||||
                                </button>
 | 
			
		||||
                            </div>
 | 
			
		||||
                            <h2 class="text-center">
 | 
			
		||||
                                {% trans "Draw a problem" %}
 | 
			
		||||
                            </h2>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <div id="buttons-{{ tournament.id }}"
 | 
			
		||||
                             {% if tournament.draw.get_state != 'WAITING_CHOOSE_PROBLEM' %}{% if user.registration.team.participation != tournament.draw.current_round.current_pool.current_team.participation and not user.is_volunteer %}class="d-none"{% endif %}{% endif %}>
 | 
			
		||||
                             <div class="d-grid">
 | 
			
		||||
                                <div class="btn-group">
 | 
			
		||||
                                    <button class="btn btn-success">
 | 
			
		||||
                                        {% trans "Accept" %}
 | 
			
		||||
                                    </button>
 | 
			
		||||
                                    <button class="btn btn-danger">
 | 
			
		||||
                                        {% trans "Decline" %}
 | 
			
		||||
                                    </button>
 | 
			
		||||
                                </div>
 | 
			
		||||
                             </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user