{% extends "base.html" %} {% load i18n %} {% block content %} {% trans "any" as any %}

{% trans "Participation of team" %} {{ participation.team.name }} ({{ participation.team.trigram }})

{% trans "Team:" %}
{{ participation.team }}
{% trans "Chosen problem:" %}
{{ participation.get_problem_display }}
{% trans "No video sent" as novideo %}
{% trans "Proposed solution:" %}
{{ participation.solution.link|default:novideo }} {% if current_phase.phase_number == 1 or participation.solution.link == "" %} {% endif %} {% if participation.solution.link %} {% endif %}
{% if user.registration.is_admin or current_phase.phase_number >= 2 %}

{% trans "Sent solution" %}

{% trans "Team that received your solution:" %}
{{ participation.sent_participation.team|default:any }}
{% if user.registration.is_admin %}
{% endif %}
{% if current_phase.phase_number == 2 %}
{% blocktrans trimmed %} The mentioned team received your video. They are now watching your video, and formulating questions. You would be able to exchange with the other phase during the next phase. {% endblocktrans %}
{% elif current_phase.phase_number == 3 %}
{% blocktrans trimmed with user_id=user.pk %} The other team sent you questions about your solution. Your are now able to answer them, then to exchange freely with the other team. You can click on the Chat button, or to connect to your dedicated Matrix account: @corres2math_{{ user_id }}:correspondances-maths.fr. You can use your own Matrix client, or use the dedicated Element client: element.correpondances-maths.fr {% endblocktrans %}
{% elif current_phase.phase_number == 4 %}
{% trans "Synthesis from the other team:" %}
{{ participation.received_participation.synthesis.link|default:novideo }} {% if participation.received_participation.synthesis.link %} {% endif %}
{% endif %}

{% trans "Received solution" %}

{% trans "Team that sent you their solution:" %}
{{ participation.received_participation.team|default:any }}
{% if user.registration.is_admin %}
{% endif %}
{% trans "Proposed solution:" %}
{{ participation.received_participation.solution.link|default:novideo }} {% if participation.received_participation.solution.link %} {% endif %}
{% if current_phase.phase_number == 2 %}
{% blocktrans trimmed %} You received a solution about the same problem that you treated from another team. You are now encouraged to see the video, then to ask from 3 to 6 questions about the video. After that, you will be invited to exchange with the other team about the solution. {% endblocktrans %}
{% for question in participation.questions.all %}
{{ question.question }}

{% endfor %} {% if user.registration.participates %} {% endif %} {% elif current_phase.phase_number == 3 %}
{% blocktrans trimmed with user_id=user.pk %} You sent your questions to the other team about their solution. When they answer to your questions, you will be able to exchange freely with the other team. You can click on the Chat button, or to connect to your dedicated Matrix account: @corres2math_{{ user_id }}:correspondances-maths.fr. You can use your own Matrix client, or use the dedicated Element client: element.correpondances-maths.fr {% endblocktrans %}
{% elif current_phase.phase_number == 4 %}
{% trans "No video sent" as novideo %}
{% trans "Your synthesis of the exchange:" %}
{{ participation.synthesis.link|default:novideo }} {% if participation.synthesis.link %} {% endif %}
{% endif %}
{% endif %} {% if user.registration.is_admin %} {% trans "Define received video" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:participation_receive_participation" pk=participation.pk as modal_action %} {% include "base_modal.html" with modal_id="defineReceivedParticipation" %} {% trans "Define team that receives your video" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:participation_send_participation" pk=participation.pk as modal_action %} {% include "base_modal.html" with modal_id="defineSentParticipation" %} {% endif %} {% trans "Upload video" as modal_title %} {% trans "Upload" as modal_button %} {% url "participation:upload_video" pk=participation.solution_id as modal_action %} {% include "base_modal.html" with modal_id="uploadSolution" %} {% trans "Display solution" as modal_title %} {% trans "This video platform is not supported yet." as unsupported_platform %} {% include "base_modal.html" with modal_id="displaySolution" modal_action="" modal_button="" modal_additional_class="modal-lg" modal_content=participation.solution.as_iframe|default:unsupported_platform %} {% if user.registration.is_admin or current_phase.phase_number >= 2 %} {% if participation.received_participation.solution.link %} {% trans "Display solution" as modal_title %} {% trans "This video platform is not supported yet." as unsupported_platform %} {% include "base_modal.html" with modal_id="displayOtherSolution" modal_action="" modal_button="" modal_additional_class="modal-lg" modal_content=participation.received_participation.solution.as_iframe|default:unsupported_platform %} {% endif %} {% endif %} {% if user.registration.participates and current_phase.phase_number == 2 %} {% trans "Add question" as modal_title %} {% trans "Add" as modal_button %} {% url "participation:add_question" pk=participation.pk as modal_action %} {% include "base_modal.html" with modal_id="addQuestion" modal_button_type="success" %} {% for question in participation.questions.all %} {% with number_str=forloop.counter|stringformat:"d"%} {% with modal_id="updateQuestion"|add:number_str %} {% trans "Delete" as delete %} {% with extra_modal_button='"|safe %} {% trans "Update question" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:update_question" pk=question.pk as modal_action %} {% include "base_modal.html" %} {% endwith %} {% endwith %} {% with modal_id="deleteQuestion"|add:number_str %} {% trans "Delete question" as modal_title %} {% trans "Delete" as modal_button %} {% url "participation:delete_question" pk=question.pk as modal_action %} {% include "base_modal.html" with modal_button_type="danger" %} {% endwith %} {% endwith %} {% endfor %} {% endif %} {% if current_phase.phase_number >= 4 %} {% if participation.received_participation.synthesis.link %} {% trans "Display synthesis" as modal_title %} {% trans "This video platform is not supported yet." as unsupported_platform %} {% include "base_modal.html" with modal_id="displayOtherSynthesis" modal_action="" modal_button="" modal_additional_class="modal-lg" modal_content=participation.received_participation.synthesis.as_iframe|default:unsupported_platform %} {% endif %} {% trans "Upload video" as modal_title %} {% trans "Upload" as modal_button %} {% url "participation:upload_video" pk=participation.synthesis_id as modal_action %} {% include "base_modal.html" with modal_id="uploadSynthesis" %} {% if participation.synthesis.link %} {% trans "Display synthesis" as modal_title %} {% trans "This video platform is not supported yet." as unsupported_platform %} {% include "base_modal.html" with modal_id="displaySynthesis" modal_action="" modal_button="" modal_additional_class="modal-lg" modal_content=participation.synthesis.as_iframe|default:unsupported_platform %} {% endif %} {% endif %} {% endblock %} {% block extrajavascript %} {% endblock %}