mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Added users page
This commit is contained in:
		
							parent
							
								
									0c63e00711
								
							
						
					
					
						commit
						29b05745ad
					
				
					 16 changed files with 112 additions and 16 deletions
				
			
		
							
								
								
									
										38
									
								
								templates/users.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								templates/users.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,38 @@ | |||
| {% extends "base.html" %} | ||||
| {% load i18n %} | ||||
| {% block title %}{% trans "Users" %}{% endblock %} | ||||
| {% block content %} | ||||
| <div class="container-fluid"> | ||||
|     <div class="row"> | ||||
| 
 | ||||
|         {% include 'sidebar.html' %} | ||||
| 
 | ||||
|         <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> | ||||
|             <button type="button" class="btn btn-success pull-right"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button> | ||||
|              <h1 class="page-header">{% trans "Accounts" %}</h1> | ||||
| 
 | ||||
|             {% include 'errors.html' %} | ||||
| 
 | ||||
|             {% for user in users %} | ||||
|                 <div id="{{ user.username }}" class="col-xs-6 col-sm-4"> | ||||
|                     <div class="panel {% if user.is_active %}panel-success{% else %}panel-danger{% endif %} panel-data"> | ||||
|                         <div class="panel-heading"> | ||||
|                             <h3 class="panel-title"><strong>{{ user.username }}</strong> | ||||
|                                 <a data-toggle="modal" href="{% url 'user' user.id %}" class="pull-right" | ||||
|                                    title="{% trans "Edit" %}"> | ||||
|                                     <span class="glyphicon glyphicon-cog"></span> | ||||
|                                 </a> | ||||
|                             </h3> | ||||
|                         </div> | ||||
|                         <div class="panel-body"> | ||||
|                             <p>Status: {% if user.is_active %}Active{% else %}Blocked{% endif %} | ||||
|                             </p> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 </div> | ||||
|             {% endfor %} | ||||
| 
 | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
| {% endblock %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue