Ajout/édition de membre
This commit is contained in:
parent
6172fb8fec
commit
dc792aa009
7 changed files with 80 additions and 9 deletions
|
|
@ -3,7 +3,7 @@
|
|||
{% block content %}
|
||||
<h2>Liste des membres</h2>
|
||||
<table class="table table-responsive">
|
||||
<tr><th>Nom/prénom</th><th>Fonction</th><th>Adresse</th><th>Téls.</th><th>Courriel</th><th>Date de naissance</th><th>Année d’entrée</th></tr>
|
||||
<tr><th>Nom/prénom</th><th>Fonction</th><th>Adresse</th><th>Téls.</th><th>Courriel</th><th>Date de naissance</th><th>Année d’entrée</th><th></th></tr>
|
||||
{% for membre in object_list %}
|
||||
<tr><td>{{ membre.nom }} {{ membre.prenom }}</td>
|
||||
<td>{{ membre.fonction }}</td>
|
||||
|
|
@ -11,8 +11,15 @@
|
|||
<td>{{ membre.tel1 }}<br>{{ membre.tel2 }}</td>
|
||||
<td>{{ membre.courriel }}</td>
|
||||
<td>{{ membre.date_naissance|date:"d.m.Y" }}</td>
|
||||
<td>{{ membre.annee_entree }}</td>
|
||||
<td>{{ membre.annee_entree|default_if_none:"" }}</td>
|
||||
<td>{% if perms.beesgospel.change_user %}
|
||||
<a href="{% url 'membre-edit' membre.pk %}"><img src="{% static 'admin/img/icon-changelink.svg' %}"></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% if perms.beesgospel.add_user %}
|
||||
<div class="mt-3"><a class="btn btn-outline-primary" href="{% url 'membre-add' %}">Ajouter un membre</a></div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue