Suppression colonne bulletin dans liste de classe

This commit is contained in:
Claude Paroz 2019-02-06 15:03:09 +01:00
parent 3d33787c74
commit a7efd0cd0e

View file

@ -10,34 +10,19 @@
{% block content %}
<h2>{{ klass.name }}</h2>
<ul>
{% if klass.section.is_fe %}
<li><a href="{% url 'import-reports' klass.pk %}">Importer des bulletins semestriels</a></li>
{% endif %}
</ul>
<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 klass.section.is_fe %}<th>Bulletins</th>{% endif %}<th>Récapitulatif des PP</th></thead>
<thead>
<th>Nom, prénom</th><th>Date naiss.</th><th>Récapitulatif des PP</th>
</thead>
{% for student in students %}
<tr class="{% cycle 'row1' 'row2' %}">
<td><a href="{% url 'admin:stages_student_change' student.pk %}">{{ student }}</a></td>
<td>{{ student.birth_date }}</td>
{% if klass.section.is_fe %}
<td>{% if student.report_sem1 %}<a href="{{ student.report_sem1.url }}">Sem. 1</a>
{% if student.report_sem1_sent %}<img src="{% static 'admin/img/icon-yes.svg' %}" title="Envoyé le {{ student.report_sem1_sent }}">{% else %}
<a href="{% url 'send-student-reports' student.pk 1 %}"><img src="{% static 'img/envelope.png' %}" width="18" title="Envoyer le bulletin à l'élève"></a>
{% endif %}
{% endif %}
{% if student.report_sem2 %}<br><a href="{{ student.report_sem2.url }}">Sem. 2</a>
{% if student.report_sem2_sent %}<img src="{% static 'admin/img/icon-yes.svg' %}" title="Envoyé le {{ student.report_sem2_sent }}">{% else %}
<a href="{% url 'send-student-reports' student.pk 2 %}"><img src="{% static 'img/envelope.png' %}" width="18" title="Envoyer le bulletin à l'élève"></a>
{% endif %}
{% endif %}
</td>
{% endif %}
{% 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 %}