choix de la période

This commit is contained in:
Valentin Moguérou 2024-04-20 00:01:07 +02:00
parent 4a9cd61405
commit 756332d3b9
2 changed files with 19 additions and 5 deletions

View File

@ -22,7 +22,25 @@
<h2>Colloscope : {{ periode.libelle }}</h2>
<a href="export.pdf" target="_blank">Exporter le colloscope</a>
<form method="get" action="{% url "colloscope.table" %}">
Changer de période&nbsp;:
<select name="periode" id="periode">
{% for p in periode.classe.periode_set.all %}
{% if p.id == periode.id %}
<option value="{{ p.id }}" selected>{{ p }}</option>
{% else %}
<option value="{{ p.id }}" selected>{{ p }}</option>
{% endif %}
{% endfor %}
</select>
<button type="submit">Valider</button>
</form>
{% if request.GET.periode %}
<a href="export.pdf?periode={{ request.GET.periode }}" target="_blank">Exporter le colloscope</a>
{% else %}
<a href="export.pdf" target="_blank">Exporter le colloscope</a>
{% endif %}
<div class="table-wrapper">
<table>

View File

@ -1,4 +0,0 @@
{% extends "base.html" %}
{% block header %}
{% endblock header %}