1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 16:57:26 +02:00

Display dates on syntheses page

This commit is contained in:
Yohann D'ANELLO
2020-05-08 16:25:55 +02:00
parent 397f243c82
commit e5b4a9b80f
4 changed files with 77 additions and 35 deletions

View File

@ -9,6 +9,31 @@
</div>
{% if form %}
{% if now < user.team.future_tournament.date_syntheses %}
<div class="alert alert-warning">
{% blocktrans with deadline=user.team.future_tournament.date_syntheses round=1 %}You can upload your syntheses for round {{ round }} until {{ deadline }}.{% endblocktrans %}
</div>
{% elif now < real_deadline_1 %}
<div class="alert alert-danger">
{% blocktrans with round=1 %}The deadline to send your syntheses for the round {{ round }} is reached. However, you have an extra time of 30 minutes to send your papers, no panic :){% endblocktrans %}
</div>
{% elif now < user.team.future_tournament.date_solutions_2 %}
<div class="alert alert-danger">
{% blocktrans with round=1 %}You can't upload your syntheses for the round {{ round }} anymore.{% endblocktrans %}
</div>
{% elif now < user.team.future_tournament.date_syntheses_2 %}
<div class="alert alert-warning">
{% blocktrans with deadline=user.team.future_tournament.date_syntheses_2 round=2 %}You can upload your syntheses for round {{ round }} until {{ deadline }}.{% endblocktrans %}
</div>
{% elif now < real_deadline_2 %}
<div class="alert alert-danger">
{% blocktrans with round=2 %}The deadline to send your syntheses for the round {{ round }} is reached. However, you have an extra time of 30 minutes to send your papers, no panic :){% endblocktrans %}
</div>
{% else %}
<div class="alert alert-danger">
{% blocktrans with round=2 %}You can't upload your syntheses for the round {{ round }} anymore.{% endblocktrans %}
</div>
{% endif %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form|crispy }}