Display the list of users
This commit is contained in:
		
							
								
								
									
										29
									
								
								templates/settings/users_list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								templates/settings/users_list.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
{% extends "base_settings_page.html" %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
 | 
			
		||||
<table class="table table-hover" style="max-width: 600px;" aria-describedby="Clients list">
 | 
			
		||||
    <thead>
 | 
			
		||||
    <tr>
 | 
			
		||||
        <th scope="col">Username</th>
 | 
			
		||||
        <th scope="col">First name</th>
 | 
			
		||||
        <th scope="col">Last name</th>
 | 
			
		||||
        <th scope="col">Email</th>
 | 
			
		||||
        <th scope="col">Account type</th>
 | 
			
		||||
        <th scope="col">Enabled</th>
 | 
			
		||||
    </tr>
 | 
			
		||||
    </thead>
 | 
			
		||||
    <tbody>
 | 
			
		||||
    {% for u in users %}
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td>{{ u.username }}</td>
 | 
			
		||||
        <td>{{ u.first_name }}</td>
 | 
			
		||||
        <td>{{ u.last_name }}</td>
 | 
			
		||||
        <td>{{ u.email }}</td>
 | 
			
		||||
        <td>{% if u.admin %}Admin{% else %}Regular account{% endif %}</td>
 | 
			
		||||
        <td>{% if u.enabled %}Enabled{% else %}Disabled{% endif %}</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
    </tbody>
 | 
			
		||||
</table>
 | 
			
		||||
 | 
			
		||||
{% endblock content %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user