1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 03:58:26 +02:00

Display syntheses template

This commit is contained in:
Yohann D'ANELLO
2020-05-06 18:54:54 +02:00
parent 6e31bcc7f1
commit f34969f3ec
5 changed files with 280 additions and 67 deletions

View File

@ -50,29 +50,32 @@
</form>
</div>
</div>
<hr>
{% if user.organizes %}
<hr>
<div class="card bg-light shadow">
<div class="card-header text-center">
<h4>{% trans "Syntheses" %}</h4>
<div class="card bg-light shadow">
<div class="card-header text-center">
<h4>{% trans "Syntheses" %}</h4>
</div>
<div class="card-body">
<div class="alert alert-warning">
{% trans "Templates for syntheses are available here:" %}
<a href="{% static "Fiche synthèse.pdf" %}">PDF</a> -- <a href="{% static "Fiche synthèse.tex" %}">TEX</a>
</div>
<div class="card-body">
{% if user.organizes %}
<ul>
{% for synthesis in pool.syntheses.all %}
<li><a data-turbolinks="false" href="{{ synthesis.file.url }}">{{ synthesis }}</a></li>
{% endfor %}
</ul>
</div>
<div class="card-footer text-center">
<form method="post">
{% csrf_token %}
<button class="btn btn-success" name="syntheses_zip">{% trans "Download ZIP archive" %}</button>
</form>
</div>
</div>
{% endif %}
</div>
<div class="card-footer text-center">
<form method="post">
{% csrf_token %}
<button class="btn btn-success" name="syntheses_zip">{% trans "Download ZIP archive" %}</button>
</form>
</div>
{% endif %}
</div>
<hr>