premier commit
This commit is contained in:
34
appli/vue/biblio.twig
Normal file
34
appli/vue/biblio.twig
Normal 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>
|
||||
Reference in New Issue
Block a user