Ajout connexion/déconnexion à l'espace membres

This commit is contained in:
Claude Paroz 2025-08-16 15:55:07 +02:00
parent 3d1b8a9bee
commit 6c3a1e6ddc
9 changed files with 108 additions and 2 deletions

View file

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<div class="float-end">
<form action="{% url 'logout' %}" method="post">{% csrf_token %}<button class="btn btn-sm btn-light" type="submit">Déconnexion</button></form>
</div>
<h2>Espace membres</h2>
<div class="row">
<a href="{% url 'liste-membres' %}">Liste des membres</a>
</div>
{% endblock %}

View file

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block content %}
<h2>Liste des membres</h2>
<table class="table table-responsive">
{% for membre in object_list %}
<tr><td>{{ membre.nom }} {{ membre.prenom }}</td>
<td>{{ membre.rue }}<br>{{ membre.npa }} {{ membre.localite }}</td>
<td>{{ membre.tel1 }}<br>{{ membre.tel2 }}</td>
<td>{{ membre.email }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}