premier commit

This commit is contained in:
2024-10-09 17:03:46 +02:00
commit a59f40bc79
4 changed files with 70 additions and 0 deletions

34
appli/vue/biblio.twig Normal file
View File

@@ -0,0 +1,34 @@
<!doctype html>
<html>
<head>
<title>{{ titre_doc }}</title>
<meta charset='UTF-8'>
</head>
<body>
<h1>{{ titre_page }} - {{ date }}</h1>
{% if biblio is not empty %}
<table>
<thead>
<tr>
<th>Titre</th>
<th>Auteur</th>
</tr>
</thead>
<tbody>
{# afficher les titres et noms des livres #}
{% for item in biblio|sort %}
<tr>
<td>{{ item.titre }}</td>
<td>{{ item.nom|capitalize }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
Aucun livre dans la bibliothèque.
{% endif %}
</body>
</html>