1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-21 15:18:23 +02:00

Add a message to add questions

This commit is contained in:
Yohann D'ANELLO
2020-10-31 14:15:49 +01:00
parent 0ea51f47b3
commit 4b14d3562f
2 changed files with 48 additions and 20 deletions

View File

@ -35,7 +35,7 @@
</div>
</div>
{% if user.registration.is_admin or current_phase >= 2 %}
{% if user.registration.is_admin or current_phase.phase_number >= 2 %}
<hr>
<div class="row">
@ -95,7 +95,7 @@
</dd>
{% endif %}
<dt class="col-xl-5">{% trans "Proposed solution:" %}</dt>
<dt class="col-xl-5 text-right">{% trans "Proposed solution:" %}</dt>
<dd class="col-sm-7"><a href="{{ participation.received_participation.solution.link|default:"#" }}"{% if participation.received_participation.solution.link %} target="_blank"{% endif %}>
{{ participation.received_participation.solution.link|default:novideo }}</a>
{% if participation.received_participation.solution.link %}
@ -104,10 +104,18 @@
</dd>
</dl>
{# TODO Display solution #}
{% if current_phase.phase_number == 2 %}
{# TODO Send questions #}
<div class="alert alert-info">
{% 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 %}
</div>
{% if user.registration.participates %}
<button class="btn btn-success"><i class="fas fa-plus-circle"></i> {% trans "Add a question" %}</button>
{% endif %}
{% elif current_phase.phase_number == 3 %}
<div class="alert alert-info">
{% blocktrans trimmed with user_id=user.pk %}