colles.mp2i-vms.fr/colloscope/templates/colloscope.html

73 lines
1.6 KiB
HTML

{% extends "base.html" %}
{% load extras %}
{% block title %}Colloscope{% endblock title %}
{% block header %}
<h1>Colloscope</h1>
{% endblock header %}
{% block main %}
<p>
Lycée : {{ periode.classe.lycee.libelle }}. Classe : {{ periode.classe.libelle }}.
</p>
<h2>Colloscope : {{ periode.libelle }}</h2>
<table>
<tr>
<th rowspan=2>Matière</th>
<th rowspan=2>Jour</th>
<th rowspan=2>Heure</th>
<th rowspan=2>Colleur</th>
<th rowspan=2>Salle</th>
</tr>
<tr>
{% for lundi in lundis %}
<th>{{ lundi | strftime:"%d/%m/%y" }}</th>
{% endfor %}
</tr>
{% for c, rs in rotations %}
<tr>
<td>{{ c.matiere.libelle }}</td>
<td>{{ jours | getitem:c.jour }}</td>
<td>{{ c.heure | strftime:"%H:%M" }}</td>
<td>
{% if c.colleur.civilite == "M" %}
M.
{% else %}
Mme
{% endif %}
{{ c.colleur.nom | upper }}
</td>
<td>
{{ c.salle }}
</td>
{% for sem, exists, r, est_modifiee, groupes in rs %}
{% if exists %}
{% if est_modifiee %}
<td class="modif">{{ groupes | join:"," }}</td>
{% else %}
<td>{{ groupes | join:"," }}</td>
{% endif %}
{% else %}
<td></td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
{% endblock main %}