Add download link to notation sheets

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2023-03-31 17:51:46 +02:00
parent 0fa76d6f25
commit 7605b9cc00
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
5 changed files with 18 additions and 2 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: TFJM\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-31 17:22+0200\n"
"POT-Creation-Date: 2023-03-31 17:39+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Emmy D'Anello <emmy.danello@animath.fr>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -856,7 +856,7 @@ msgstr "Envoyer une solution"
#: participation/templates/participation/pool_detail.html:87
#: participation/templates/participation/team_detail.html:185
#: participation/templates/participation/upload_motivation_letter.html:13
#: participation/templates/participation/upload_notes.html:12
#: participation/templates/participation/upload_notes.html:24
#: participation/templates/participation/upload_solution.html:11
#: participation/templates/participation/upload_synthesis.html:16
#: registration/templates/registration/upload_health_sheet.html:17
@ -1262,6 +1262,10 @@ msgstr "Ajouter un tournoi"
msgid "Back to the team detail"
msgstr "Retour aux détails de l'utilisateur⋅rice"
#: participation/templates/participation/upload_notes.html:18
msgid "Download empty notation sheet"
msgstr "Télécharger la fiche de notation vierge"
#: participation/templates/participation/upload_synthesis.html:9
msgid "Templates:"
msgstr "Modèles :"

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,10 +2,22 @@
{% load crispy_forms_tags %}
{% load i18n %}
{% load static %}
{% block content %}
<form method="post" enctype="multipart/form-data">
<div id="form-content">
<div class="alert alert-info">
{% if object.participations.count == 3 %}
<a class="alert-link" href="{% static "Fiche notations - 3 équipes.ods" %}">
{% elif object.participations.count == 4 %}
<a class="alert-link" href="{% static "Fiche notations - 4 équipes.ods" %}">
{% elif object.participations.count == 5 %}
<a class="alert-link" href="{% static "Fiche notations - 5 équipes.ods" %}">
{% endif %}
{% trans "Download empty notation sheet" %}
</a>
</div>
{% csrf_token %}
{{ form|crispy }}
</div>