1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-11-27 05:33:03 +00:00
plateforme-tfjm2/templates/tournament/syntheses_list.html

46 lines
2.4 KiB
HTML
Raw Normal View History

2020-05-04 22:11:38 +00:00
{% extends "base.html" %}
2020-05-06 21:51:17 +00:00
{% load i18n crispy_forms_filters django_tables2 static %}
2020-05-04 22:11:38 +00:00
{% block content %}
2020-05-06 16:54:54 +00:00
<div class="alert alert-warning">
{% trans "Templates for syntheses are available here:" %}
2020-06-02 20:07:54 +00:00
<a data-turbolinks="false" href="{% static "Fiche synthèse.pdf" %}">PDF</a><a data-turbolinks="false" href="{% static "Fiche synthèse.tex" %}">TEX</a>
2020-05-06 16:54:54 +00:00
</div>
2020-05-04 22:11:38 +00:00
{% if form %}
2020-05-08 14:25:55 +00:00
{% 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 %}
2020-05-04 22:11:38 +00:00
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form|crispy }}
<button class="btn btn-block btn-success">{% trans "Submit" %}</button>
</form>
<hr>
{% endif %}
{% render_table table %}
{% endblock %}