mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-28 14:22:24 +00:00
46 lines
2.4 KiB
HTML
46 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load i18n crispy_forms_filters django_tables2 static %}
|
|
|
|
{% block content %}
|
|
<div class="alert alert-warning">
|
|
{% trans "Templates for syntheses are available here:" %}
|
|
<a data-turbolinks="false" href="{% static "Fiche synthèse.pdf" %}">PDF</a> -- <a data-turbolinks="false" href="{% static "Fiche synthèse.tex" %}">TEX</a>
|
|
</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 }}
|
|
<button class="btn btn-block btn-success">{% trans "Submit" %}</button>
|
|
</form>
|
|
<hr>
|
|
{% endif %}
|
|
{% render_table table %}
|
|
{% endblock %}
|