mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 14:32:19 +01:00 
			
		
		
		
	Select teams for final
This commit is contained in:
		@@ -19,13 +19,15 @@
 | 
			
		||||
                <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>
 | 
			
		||||
                <dd class="col-xl-6"><a
 | 
			
		||||
                        href="{% url "tournament:detail" pk=team.tournament.pk %}">{{ team.tournament }}</a></dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'coachs'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6">{% autoescape off %}{{ team.linked_encadrants|join:", " }}{% endautoescape %}</dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-xl-6 text-right">{% trans 'participants'|capfirst %}</dt>
 | 
			
		||||
                <dd class="col-xl-6">{% autoescape off %}{{ team.linked_participants|join:", " }}{% endautoescape %}</dd>
 | 
			
		||||
                <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>
 | 
			
		||||
@@ -40,19 +42,26 @@
 | 
			
		||||
 | 
			
		||||
        {% if user.admin or user in team.tournament.organizers.all or team == user.team %}
 | 
			
		||||
            <div class="card-footer text-center">
 | 
			
		||||
                {% 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">
 | 
			
		||||
                <form method="post">
 | 
			
		||||
                    {% csrf_token %}
 | 
			
		||||
                    {% if team.invalid or user.organizes %}
 | 
			
		||||
                        <a class="btn btn-secondary" href="{% url "tournament:team_update" pk=team.pk %}">
 | 
			
		||||
                            {% trans "Edit team" %}
 | 
			
		||||
                        </a>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    {% if team.valid and user.admin and not team.selected_for_final and team.pools %}
 | 
			
		||||
                        <button name="select_final" class="btn btn-success">{% trans "Select for final" %}</button>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    {% if team.invalid %}
 | 
			
		||||
                        <form method="post">
 | 
			
		||||
                        {% csrf_token %}
 | 
			
		||||
                        {% 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 %}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </form>
 | 
			
		||||
            </div>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
@@ -75,14 +84,17 @@
 | 
			
		||||
            <div class="alert alert-warning">
 | 
			
		||||
                Pour demander à valider votre équipe, vous devez avoir au moins un encadrant, quatre participants
 | 
			
		||||
                et soumis une autorisation de droit à l'image, une fiche sanitaire et une autorisation
 | 
			
		||||
                parentale (si besoin) par participant, ainsi qu'une lettre de motivation à transmettre aux organisateurs.
 | 
			
		||||
                parentale (si besoin) par participant, ainsi qu'une lettre de motivation à transmettre aux
 | 
			
		||||
                organisateurs.
 | 
			
		||||
                Les encadrants doivent également fournir une autorisation de droit à l'image.
 | 
			
		||||
            </div>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        <hr>
 | 
			
		||||
        <div class="alert alert-danger">
 | 
			
		||||
            En raison du changement de format du TFJM² 2020, il n'y a plus de document obligatoire à envoyer. Les autorisations
 | 
			
		||||
            précédemment envoyées ont été détruites. Seules les lettres de motivation ont été conservées, mais leur envoi
 | 
			
		||||
            En raison du changement de format du TFJM² 2020, il n'y a plus de document obligatoire à envoyer. Les
 | 
			
		||||
            autorisations
 | 
			
		||||
            précédemment envoyées ont été détruites. Seules les lettres de motivation ont été conservées, mais leur
 | 
			
		||||
            envoi
 | 
			
		||||
            n'est plus obligatoire.
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
@@ -90,7 +102,7 @@
 | 
			
		||||
    {% if team.waiting %}
 | 
			
		||||
        <hr>
 | 
			
		||||
        <div class="alert alert-warning">
 | 
			
		||||
        {% trans "The team is waiting about validation." %}
 | 
			
		||||
            {% trans "The team is waiting about validation." %}
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        {% if user.admin %}
 | 
			
		||||
@@ -98,7 +110,8 @@
 | 
			
		||||
                {% csrf_token %}
 | 
			
		||||
                <div class="form-group row">
 | 
			
		||||
                    <label for="message">{% trans "Message addressed to the team:" %}</label>
 | 
			
		||||
                    <textarea class="form-control" id="message" name="message" placeholder="{% trans "Message..." %}"></textarea>
 | 
			
		||||
                    <textarea class="form-control" id="message" name="message"
 | 
			
		||||
                              placeholder="{% trans "Message..." %}"></textarea>
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
                <div class="form-group">
 | 
			
		||||
@@ -118,7 +131,8 @@
 | 
			
		||||
    {% if team.motivation_letters.count %}
 | 
			
		||||
        <div class="alert alert-info">
 | 
			
		||||
            <strong>{% blocktrans %}Motivation letter:{% endblocktrans %}</strong>
 | 
			
		||||
            <a data-turbolinks="false" href="{% url "document" file=team.motivation_letters.last.file %}">{% trans "Download" %}</a>
 | 
			
		||||
            <a data-turbolinks="false"
 | 
			
		||||
               href="{% url "document" file=team.motivation_letters.last.file %}">{% trans "Download" %}</a>
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
@@ -126,7 +140,9 @@
 | 
			
		||||
        <div class="alert alert-info">
 | 
			
		||||
            <ul>
 | 
			
		||||
                {% for solution in ordered_solutions %}
 | 
			
		||||
                    <li><strong>{{ solution }} :</strong> <a data-turbolinks="false" href="{% url "document" file=solution.file %}">{% trans "Download" %}</a></li>
 | 
			
		||||
                    <li><strong>{{ solution }} :</strong> <a data-turbolinks="false"
 | 
			
		||||
                                                             href="{% url "document" file=solution.file %}">{% trans "Download" %}</a>
 | 
			
		||||
                    </li>
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user