Ajout connexion/déconnexion à l'espace membres
This commit is contained in:
		
							parent
							
								
									3d1b8a9bee
								
							
						
					
					
						commit
						6c3a1e6ddc
					
				
					 9 changed files with 108 additions and 2 deletions
				
			
		
							
								
								
									
										11
									
								
								templates/membres/index.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								templates/membres/index.html
									
										
									
									
									
										Normal 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 %}
 | 
			
		||||
							
								
								
									
										14
									
								
								templates/membres/liste.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								templates/membres/liste.html
									
										
									
									
									
										Normal 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 %}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue