47 lines
1.9 KiB
HTML
47 lines
1.9 KiB
HTML
{% extends 'manuels/base.html' %}
|
|
|
|
{% load bootstrap4 %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1>Bienvenue {{ teacher.full_name }}</h1>
|
|
<h2>{% block title %}Liste des livres demandés{% endblock %}</h2>
|
|
<a href="{% url 'add_book' pk=teacher.pk %}" class="btn btn-primary">Ajouter un livre</a>
|
|
<table class="table table-hover table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Classe</th>
|
|
<th scope="col">Matière</th>
|
|
<th scope="col">Titre</th>
|
|
<th scope="col">Auteurs</th>
|
|
<th scope="col">Éditeur</th>
|
|
<th scope="col">Collection</th>
|
|
<th scope="col">Année de publication</th>
|
|
<th scope="col">ISBN</th>
|
|
<th scope="col">Prix</th>
|
|
<th scope="col">Déjà acheté par l'élève</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for book in books %}
|
|
<tr>
|
|
<th scope="row">{{ forloop.counter }}</th>
|
|
<td>{{ book.level }}</td>
|
|
<td>{{ book.field }}</td>
|
|
<td>{{ book.title }}</td>
|
|
<td>{{ book.authors }}</td>
|
|
<td>{{ book.editor }}</td>
|
|
<td>{{ book.collection }}</td>
|
|
<td>{{ book.publication_year }}</td>
|
|
<td>{{ book.isbn }}</td>
|
|
<td>{{ book.price }}</td>
|
|
<td>{{ book.previously_acquired_emoji }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |