{% extends "base.html" %} {% load i18n %} {% load crispy_forms_filters %} {% block content %}

{{ team.name }}

{% trans "Name:" %}
{{ team.name }}
{% trans "Trigram:" %}
{{ team.trigram }}
{% trans "Email:" %}
{{ team.email }}
{% trans "Access code:" %}
{{ team.access_code }}
{% trans "Coachs:" %}
{% for coach in team.coachs.all %} {{ coach }}{% if not forloop.last %},{% endif %} {% empty %} {% trans "any" %} {% endfor %}
{% trans "Participants:" %}
{% for student in team.students.all %} {{ student }}{% if not forloop.last %},{% endif %} {% empty %} {% trans "any" %} {% endfor %}
{% trans "Chosen problem:" %}
{% trans "any" as any %}
{{ team.participation.get_problem_display|default:any }}
{% trans "Grant Animath to publish our video:" %}
{{ team.grant_animath_access_videos|yesno }}
{% trans "Authorizations:" %}
{% for student in team.students.all %} {% if student.photo_authorization %} {{ student }}{% if not forloop.last %},{% endif %} {% else %} {{ student }} ({% trans "Not uploaded yet" %}){% if not forloop.last %},{% endif %} {% endif %} {% endfor %}

{% if team.participation.valid %}
{% trans "Access to team participation" %}
{% elif team.participation.valid == None %} {# Team did not ask for validation #} {% if user.registration.participates %} {% if can_validate %}
{% trans "Your team has at least 3 members and all photo authorizations were given: the team can be validated." %}
{% csrf_token %} {{ request_validation_form|crispy }}
{% else %}
{% trans "Your team must be composed of 3 members and each member must upload its photo authorization and confirm its email address." %}
{% endif %} {% else %}
{% trans "This team didn't ask for validation yet." %}
{% endif %} {% else %} {# Team is waiting for validation #} {% if user.registration.participates %}
{% trans "Your validation is pending." %}
{% else %}
{% trans "The team requested to be validated. You may now control the authorizations and confirm that they can participate." %}
{% csrf_token %} {{ validation_form|crispy }}
{% endif %} {% endif %} {% trans "Update team" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:update_team" pk=team.pk as modal_action %} {% include "base_modal.html" with modal_id="updateTeam" %} {% trans "Leave team" as modal_title %} {% trans "Leave" as modal_button %} {% url "participation:team_leave" as modal_action %} {% include "base_modal.html" with modal_id="leaveTeam" modal_button_type="danger" %} {% endblock %} {% block extrajavascript %} {% endblock %}