mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 03:58:26 +02:00
Add download link to notation sheets
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user