{% load static %}
<!DOCTYPE html>
<html>
  <head>
    <title>État des prêts pour la {{ classe }} </title>
    <link rel="stylesheet" href="{% static 'css/gestion.css' %}"/>
    <script src="{% static 'js/jquery/jquery.js' %}"></script>
    <script src="{% static 'js/jquery-ui/jquery-ui.js' %}"></script>
    <link rel="stylesheet" href="{% static 'js/jquery-ui/themes/base/all.css' %}"/>
    <link rel="icon" href="{% static 'img/favicon.ico' %}" />
    <script src="{% static 'js/slm.js' %}"></script>
  </head>
  
  <body>
    <h1>État des prêts pour la {{ classe }}</h1>
    <p>
      Imprimé le : {{ date }}
      <button onclick="print()" class="no-print" style="margin-left: 15px;"><img src="{% static 'img/document-print.svg' %}" alt="imprimer"/></button>
    </p>
    {% if eleves %}
    <table class="tableau_prets" >
      {% for e, clean in eleves.items %}
      <tr>
	<td>{% if clean %}☑{% else %}☐{% endif %}</td>
	<td>{{ e.doit }}</td>
      </tr>
      {% endfor %}
    </table>
    {% else %}
    <p>Pas d'élèves à lister</p>
    {% endif %}
  </body>
</html>
