mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Added admin application
- Manage users - Manage groups - Manage logs
This commit is contained in:
		
							parent
							
								
									38befa4362
								
							
						
					
					
						commit
						27f62dff6c
					
				
					 38 changed files with 933 additions and 742 deletions
				
			
		|  | @ -1,38 +0,0 @@ | |||
| {% load i18n %} | ||||
| {% if request.user.is_superuser %} | ||||
|     <a href="#AddUser" type="button" class="btn btn-success btn-header pull-right" data-toggle="modal"> | ||||
|         <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> | ||||
|     </a> | ||||
| 
 | ||||
|     <!-- Modal pool --> | ||||
|     <div class="modal fade" id="AddUser" tabindex="-1" role="dialog" aria-labelledby="AddUserLabel" aria-hidden="true"> | ||||
|         <div class="modal-dialog"> | ||||
|             <div class="modal-content"> | ||||
|                 <form class="form-horizontal" method="post" action="" role="form">{% csrf_token %} | ||||
|                     <div class="modal-header"> | ||||
|                         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||||
|                         <h4 class="modal-title">{% trans "Add New User" %}</h4> | ||||
|                     </div> | ||||
|                     <div class="modal-body"> | ||||
|                         <div class="form-group"> | ||||
|                             <label class="col-sm-4 control-label">{% trans "Name" %}</label> | ||||
|                             <div class="col-sm-6"> | ||||
|                                 <input type="text" class="form-control" name="name" placeholder="john" required pattern="[a-z0-9]+"> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group"> | ||||
|                             <label class="col-sm-4 control-label">{% trans "Password" %}</label> | ||||
|                             <div class="col-sm-6"> | ||||
|                                 <input type="password" class="form-control" name="password" placeholder="*******" {% if not allow_empty_password %}required{% endif %}> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                     <div class="modal-footer"> | ||||
|                         <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Close" %}</button> | ||||
|                         <button type="submit" class="btn btn-primary" name="create">{% trans "Create" %}</button> | ||||
|                     </div> | ||||
|                 </form> | ||||
|             </div> <!-- /.modal-content --> | ||||
|         </div> <!-- /.modal-dialog --> | ||||
|     </div> <!-- /.modal --> | ||||
| {% endif %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue