44 lines
1.6 KiB
HTML
44 lines
1.6 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
{% load i18n static %}
|
|
|
|
{% block breadcrumbs %}
|
|
<div class="breadcrumbs">
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
› <a href="{% url 'classes' %}">Liste des classes</a>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>{{ klass.name }}</h2>
|
|
|
|
<div style="float:right;">
|
|
<a href="{% url 'class' object.pk %}?format=xls"><img src="{% static 'img/xls.png' %}" title="Exportation Excel" width="24"></a>
|
|
</div>
|
|
<h3>Liste des éléves</h3>
|
|
<table>
|
|
<thead>
|
|
<th>Nom, prénom</th>
|
|
<th>Date naiss.</th>
|
|
{% if show_option_ase %}<th>Orientation</th>{% endif %}
|
|
{% if show_pp %}<th>Récapitulatif des PP</th>{% endif %}
|
|
{% if show_employeur %}<th>Employeur</th>{% endif %}
|
|
</thead>
|
|
{% for student in students %}
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
|
<td><a href="{% url 'student-comment' student.pk %}">{{ student }}</a></td>
|
|
<td>{{ student.birth_date }}</td>
|
|
{% if show_option_ase %}
|
|
<td>{{ student.option_ase|default_if_none:'-' }}</td>
|
|
{% endif %}
|
|
{% if show_pp %}
|
|
{% for train in student.training_set.all %}
|
|
<td>{{ train.availability.period }}<br>{{ train.availability.corporation }}<br>
|
|
{% if train.comment %}<div style="float: right;"><img src="{% static 'admin/img/icon-unknown.svg' %}" title="{{ train.comment }}"></div>{% endif %}
|
|
<i>{{ train.availability.domain }}</i></td>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if show_employeur %}<td>{{ student.corporation.name }}, {{ student.corporation.city }}</td>{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endblock %}
|