1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-30 22:22:21 +00:00
plateforme-tfjm2/templates/tournament/solutions_list.html

30 lines
1.1 KiB
HTML
Raw Normal View History

2020-04-30 18:11:03 +00:00
{% extends "base.html" %}
2020-05-04 21:37:21 +00:00
{% load i18n crispy_forms_filters django_tables2 %}
2020-04-30 18:11:03 +00:00
{% block content %}
2020-05-04 21:37:21 +00:00
{% if form %}
2020-05-05 21:19:18 +00:00
{% if now < user.team.future_tournament.date_solutions %}
<div class="alert alert-warning">
{% blocktrans with deadline=user.team.future_tournament.date_solutions %}You can upload your solutions until {{ deadline }}.{% endblocktrans %}
</div>
{% else %}
<div class="alert alert-danger">
{% if now < real_deadline %}
{% trans "The deadline to send your solutions is reached. However, you have an extra time of 30 minutes to send your papers, no panic :)" %}
{% else %}
{% trans "You can't upload your solutions anymore." %}
{% endif %}
</div>
{% endif %}
2020-05-04 21:37:21 +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 %}
2020-04-30 18:11:03 +00:00
{% render_table table %}
{% endblock %}