Création d'une page de gestion des humeurs

This commit is contained in:
Kepka Ludovic
2025-08-09 09:08:27 +02:00
parent 21b5cf8669
commit 7db8b1ff7b
11 changed files with 77 additions and 21 deletions

View File

@@ -0,0 +1,28 @@
{% extends "template.html" %}
{% block content %}
<h1>Humeurs de Mamie.</h1>
<table>
<thead>
<tr>
<th>Text</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for humeur in humeurs %}
<tr>
<td>{{humeur.text}}</td>
<td><a href="{{ url_for('delHumeur', id = humeur.id) }}">Supprimer</a></td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>Ajouter une humeur</h2>
<form action="{{ url_for('addHumeur') }}" method="POST">
<label for="text">Text</label>
<input name="text" type="text" />
<input type="Submit" value="Ajouter">
</form>
{% endblock %}

View File

@@ -19,6 +19,7 @@
<a href="/"><img src="/static/ico/favicon.ico"></a>
<ul>
<li><a href="/commandes">Commandes</a></li>
<li><a href="/humeurs">Humeurs</a></li>
<li><a href="/messages">Messages</a></li>
<li><a href="/moderation">Modération</a></li>
</ul>