mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Resoved problem with app template
This commit is contained in:
		
							parent
							
								
									35da9ad193
								
							
						
					
					
						commit
						b4e8da8671
					
				
					 42 changed files with 37 additions and 32 deletions
				
			
		
							
								
								
									
										104
									
								
								accounts/templates/account.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								accounts/templates/account.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,104 @@ | |||
| {% extends "base.html" %} | ||||
| {% load i18n %} | ||||
| {% block title %}{% trans "User" %} - {{ user }}{% endblock %} | ||||
| {% block content %} | ||||
|             <!-- Page Heading --> | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     {% include 'create_user_inst_block.html' %} | ||||
|                     <h1 class="page-header">{{ user }}</h1> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <!-- /.row --> | ||||
| 
 | ||||
|             {% include 'errors_block.html' %} | ||||
| 
 | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     {% if not user_insts %} | ||||
|                         <div class="col-lg-12"> | ||||
|                             <div class="alert alert-warning alert-dismissable"> | ||||
|                                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|                                 <i class="fa fa-exclamation-triangle"></i> <strong>{% trans "Warning:" %}</strong> {% trans "User doesn't have any Instace" %} | ||||
|                             </div> | ||||
|                         </div> | ||||
|                     {% else %} | ||||
|                         <div class="table-responsive"> | ||||
|                             <table class="table table-bordered table-hover"> | ||||
|                                 <thead> | ||||
|                                     <tr> | ||||
|                                         <th>#</th> | ||||
|                                         <th>{% trans "Instance" %}</th> | ||||
|                                         <th>{% trans "Resize" %}</th> | ||||
|                                         <th>{% trans "Delete" %}</th> | ||||
|                                         <th colspan="2">{% trans "Action" %}</th> | ||||
|                                     </tr> | ||||
|                                 </thead> | ||||
|                                 <tbody> | ||||
|                                     {% for inst in user_insts %} | ||||
|                                         <tr> | ||||
|                                             <td>{{ forloop.counter }}</td> | ||||
|                                             <td><a href="{% url 'instance' inst.instance.compute.id inst.instance.name %}">{{ inst.instance.name }}</a></td> | ||||
|                                             <td>{{ inst.is_change }}</td> | ||||
|                                             <td>{{ inst.is_delete }}</td> | ||||
|                                             <td style="width:5px;"> | ||||
|                                                 <a href="#editPriv{{ forloop.counter }}" type="button" class="btn btn-xs btn-default" data-toggle="modal"> | ||||
|                                                     <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> | ||||
|                                                 </a> | ||||
| 
 | ||||
|                                                 <!-- Modal pool --> | ||||
|                                                 <div class="modal fade" id="editPriv{{ forloop.counter }}" tabindex="-1" role="dialog" aria-labelledby="editPrivLabel" aria-hidden="true"> | ||||
|                                                     <div class="modal-dialog"> | ||||
|                                                         <div class="modal-content"> | ||||
|                                                             <div class="modal-header"> | ||||
|                                                                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||||
|                                                                 <h4 class="modal-title">{% trans "Edit privilegies for" %} {{ inst.instance.name }}</h4> | ||||
|                                                             </div> | ||||
|                                                             <div class="modal-body"> | ||||
|                                                                 <form class="form-horizontal" method="post" action="" role="form">{% csrf_token %} | ||||
|                                                                     <input type="hidden" name="user_inst" value="{{ inst.id }}"> | ||||
|                                                                     <div class="form-group"> | ||||
|                                                                         <label class="col-sm-4 control-label">{% trans "Resize" %}</label> | ||||
|                                                                         <div class="col-sm-6"> | ||||
|                                                                             <select type="text" class="form-control" name="inst_change"> | ||||
|                                                                                 <option value="">False</option> | ||||
|                                                                                 <option value="1" {% if inst.is_change %}selected{% endif %}>True</option> | ||||
|                                                                             </select> | ||||
|                                                                         </div> | ||||
|                                                                     </div> | ||||
|                                                                     <div class="form-group"> | ||||
|                                                                         <label class="col-sm-4 control-label">{% trans "Delete" %}</label> | ||||
|                                                                         <div class="col-sm-6"> | ||||
|                                                                             <select type="text" class="form-control" name="inst_delete"> | ||||
|                                                                                 <option value="">False</option> | ||||
|                                                                                 <option value="1" {% if inst.is_delete %}selected{% endif %}>True</option> | ||||
|                                                                             </select> | ||||
|                                                                         </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="permission">{% trans "Edit" %}</button> | ||||
|                                                             </div> | ||||
|                                                                 </form> | ||||
|                                                         </div> <!-- /.modal-content --> | ||||
|                                                     </div> <!-- /.modal-dialog --> | ||||
|                                                 </div> <!-- /.modal --> | ||||
|                                             </td> | ||||
|                                             <td style="width:5px;"> | ||||
|                                                 <form action="" method="post" role="form">{% csrf_token %} | ||||
|                                                     <input type="hidden" name="user_inst" value="{{ inst.id }}"> | ||||
|                                                     <button type="submit" class="btn btn-xs btn-default" name="delete" tittle="{% trans "Delete" %}" onclick="return confirm('{% trans "Are you sure?" %}')"> | ||||
|                                                         <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> | ||||
|                                                     </button> | ||||
|                                                 </form> | ||||
|                                             </td> | ||||
|                                         </tr> | ||||
|                                     {% endfor %} | ||||
|                                 </tbody> | ||||
|                             </table> | ||||
|                         </div> | ||||
|                     {% endif %} | ||||
|                 </div> | ||||
|             </div> | ||||
| {% endblock %} | ||||
							
								
								
									
										102
									
								
								accounts/templates/accounts.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										102
									
								
								accounts/templates/accounts.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,102 @@ | |||
| {% extends "base.html" %} | ||||
| {% load i18n %} | ||||
| {% block title %}{% trans "Users" %}{% endblock %} | ||||
| {% block content %} | ||||
|             <!-- Page Heading --> | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     {% include 'create_user_block.html' %} | ||||
|                     <h1 class="page-header">{% trans "Users" %}</h1> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <!-- /.row --> | ||||
| 
 | ||||
|             {% include 'errors_block.html' %} | ||||
| 
 | ||||
|             <div class="row"> | ||||
|                 {% if not users %} | ||||
|                     <div class="col-lg-12"> | ||||
|                         <div class="alert alert-warning alert-dismissable"> | ||||
|                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|                             <i class="fa fa-exclamation-triangle"></i> <strong>{% trans "Warning:" %}</strong> {% trans "You don't have any User" %} | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 {% else %} | ||||
|                     {% for user in users %} | ||||
|                         <div id="{{ user.username }}" class="col-xs-12 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"> | ||||
|                                         <a href="{% url 'account' user.id %}"><strong>{{ user.username }}</strong></a> | ||||
|                                         <a data-toggle="modal" href="#editUser{{ user.id }}" class="pull-right" title="{% trans "Edit" %}"> | ||||
|                                             <span class="glyphicon glyphicon-cog"></span> | ||||
|                                         </a> | ||||
|                                     </h3> | ||||
|                                 </div> | ||||
|                                 <div class="panel-body"> | ||||
|                                     <div class="col-xs-4 col-sm-4"> | ||||
|                                         <p><strong>{% trans "Status:" %}</strong></p> | ||||
|                                     </div> | ||||
|                                     <div class="col-xs-4 col-sm-6"> | ||||
|                                         {% if user.is_active %} | ||||
|                                             <p>{% trans "Active" %}</p> | ||||
|                                         {% else %} | ||||
|                                             <p>{% trans "Blocked" %}</p> | ||||
|                                         {% endif %} | ||||
|                                     </div> | ||||
|                                 </div> | ||||
|                             </div> | ||||
|                         </div> | ||||
| 
 | ||||
|                         <!-- Modal Edit --> | ||||
|                         <div class="modal fade" id="editUser{{ user.id }}" tabindex="-1" role="dialog" aria-labelledby="editUserLabel" aria-hidden="true"> | ||||
|                             <div class="modal-dialog"> | ||||
|                                 <div class="modal-content"> | ||||
|                                     <div class="modal-header"> | ||||
|                                         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||||
|                                         <h4 class="modal-title">{% trans "Edit user info" %}</h4> | ||||
|                                     </div> | ||||
|                                     <div class="modal-body"> | ||||
|                                         <form class="form-horizontal" method="post" role="form">{% csrf_token %} | ||||
|                                             <div class="form-group"> | ||||
|                                                 <label class="col-sm-4 control-label">{% trans "Name" %}</label> | ||||
|                                                 <div class="col-sm-6"> | ||||
|                                                     <input type="hidden" name="user_id" value="{{ user.id }}"> | ||||
|                                                     <input type="text" name="name" class="form-control" value="{{ user.username }}" disabled> | ||||
|                                                 </div> | ||||
|                                             </div> | ||||
|                                             <div class="form-group"> | ||||
|                                                 <label class="col-sm-4 control-label">{% trans "Password" %}</label> | ||||
|                                                 <div class="col-sm-6"> | ||||
|                                                     <input type="password" name="user_pass" class="form-control" value=""> | ||||
|                                                 </div> | ||||
|                                             </div> | ||||
|                                     </div> | ||||
|                                     <div class="modal-footer"> | ||||
|                                         <button type="submit" class="pull-left btn btn-danger" name="delete"> | ||||
|                                             {% trans "Delete" %} | ||||
|                                         </button> | ||||
|                                         {% if user.is_active %} | ||||
|                                             <button type="submit" class="pull-left btn btn-warning" name="block"> | ||||
|                                                 {% trans "Block" %} | ||||
|                                             </button> | ||||
|                                         {% else %} | ||||
|                                             <button type="submit" class="pull-left btn btn-success" name="unblock"> | ||||
|                                                 {% trans "Unblock" %} | ||||
|                                             </button> | ||||
|                                         {% endif %} | ||||
|                                         <button type="button" class="btn btn-default" data-dismiss="modal"> | ||||
|                                             {% trans "Close" %} | ||||
|                                         </button> | ||||
|                                         <button type="submit" class="btn btn-primary" name="edit"> | ||||
|                                             {% trans "Edit" %} | ||||
|                                         </button> | ||||
|                                         </form> | ||||
|                                     </div> | ||||
|                                 </div><!-- /.modal-content --> | ||||
|                             </div><!-- /.modal-dialog --> | ||||
|                         </div><!-- /.modal --> | ||||
|                     {% endfor %} | ||||
|                 {% endif %} | ||||
|             </div> | ||||
| {% endblock %} | ||||
							
								
								
									
										41
									
								
								accounts/templates/base_auth.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								accounts/templates/base_auth.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,41 @@ | |||
| {% load static %} | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| 
 | ||||
| <head> | ||||
| 
 | ||||
|     <meta charset="utf-8"> | ||||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
|     <meta name="description" content="WebVirtMgr panel for manage virtual machine"> | ||||
|     <meta name="author" content="anatoliy.guskov@gmail.com"> | ||||
| 
 | ||||
|     <title>{% block title %}{% endblock %}</title> | ||||
| 
 | ||||
|     <!-- Bootstrap Core CSS --> | ||||
|     <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- SB admin CSS --> | ||||
|     <link href="{% static "css/signin.css" %}" rel="stylesheet"> | ||||
| 
 | ||||
|     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||||
|     <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||||
|     <!--[if lt IE 9]> | ||||
|         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||||
|         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | ||||
|     <![endif]--> | ||||
| 
 | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
|     <div class="container"> | ||||
|     {% block content %}{% endblock %} | ||||
|     </div> | ||||
| 
 | ||||
|     <!-- jQuery --> | ||||
|     <script src="{% static "js/jquery.js" %}"></script> | ||||
|     <!-- Bootstrap Core JavaScript --> | ||||
|     <script src="{% static "js/bootstrap.min.js" %}"></script> | ||||
| </body> | ||||
| 
 | ||||
| </html> | ||||
							
								
								
									
										38
									
								
								accounts/templates/create_user_block.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								accounts/templates/create_user_block.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,38 @@ | |||
| {% load i18n %} | ||||
| {% if request.user.is_superuser %} | ||||
|     <a href="#AddUser" type="button" class="btn btn-success 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"> | ||||
|                 <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"> | ||||
|                     <form class="form-horizontal" method="post" action="" role="form">{% csrf_token %} | ||||
|                         <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="*******" required> | ||||
|                             </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 %} | ||||
							
								
								
									
										36
									
								
								accounts/templates/create_user_inst_block.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								accounts/templates/create_user_inst_block.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | |||
| {% load i18n %} | ||||
| {% if request.user.is_superuser %} | ||||
|     <a href="#addUserInst" type="button" class="btn btn-success pull-right" data-toggle="modal"> | ||||
|         <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> | ||||
|     </a> | ||||
| 
 | ||||
|     <!-- Modal pool --> | ||||
|     <div class="modal fade" id="addUserInst" tabindex="-1" role="dialog" aria-labelledby="addUserInstLabel" aria-hidden="true"> | ||||
|         <div class="modal-dialog"> | ||||
|             <div class="modal-content"> | ||||
|                 <div class="modal-header"> | ||||
|                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||||
|                     <h4 class="modal-title">{% trans "Add Instance for User" %}</h4> | ||||
|                 </div> | ||||
|                 <div class="modal-body"> | ||||
|                     <form class="form-horizontal" method="post" action="" role="form">{% csrf_token %} | ||||
|                         <div class="form-group"> | ||||
|                             <label class="col-sm-4 control-label">{% trans "Host / Instance" %}</label> | ||||
|                             <div class="col-sm-6"> | ||||
|                                 <select class="form-control" name="inst_id"> | ||||
|                                     {% for inst in instances %} | ||||
|                                         <option value="{{ inst.id }}">{{ inst.compute.name }} / {{ inst.name }}</option> | ||||
|                                     {% endfor %} | ||||
|                                 </select> | ||||
|                             </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="add">{% trans "Add" %}</button> | ||||
|                 </div> | ||||
|                     </form> | ||||
|             </div> <!-- /.modal-content --> | ||||
|         </div> <!-- /.modal-dialog --> | ||||
|     </div> <!-- /.modal --> | ||||
| {% endif %} | ||||
							
								
								
									
										25
									
								
								accounts/templates/login.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								accounts/templates/login.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| {% extends "base_auth.html" %} | ||||
| {% load i18n %} | ||||
| {% block title %}{% trans "WebVirtCloud - Sign In" %}{% endblock %} | ||||
| {% block content %} | ||||
|     <div class="row"> | ||||
|         <div class="page-header"> | ||||
|             <a href="/"><h1>WebVirtCloud</h1></a> | ||||
|         </div> | ||||
|         <div class="col-xs-12" role="main"> | ||||
|             {% if form.errors %} | ||||
|                 <div class="alert alert-danger"> | ||||
|                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|                     {% trans "Incorrect username or password." %} | ||||
|                 </div> | ||||
|             {% endif %} | ||||
|             <form class="form-signin" method="post" role="form">{% csrf_token %} | ||||
|                 <h2 class="form-signin-heading">{% trans "Sign In" %}</h2> | ||||
|                 <input type="text" class="form-control" name="username" placeholder="Login" autocapitalize="none" autocorrect="off" autofocus> | ||||
|                 <input type="password" class="form-control" name="password" placeholder="Password"> | ||||
|                 <input name="next" id="next" type="hidden" value="{% url 'instances' %}"> | ||||
|                 <button class="btn btn-lg btn-success btn-block" type="submit">{% trans "Sign In" %}</button> | ||||
|             </form> | ||||
|         </div> | ||||
|     </div> | ||||
| {% endblock %} | ||||
							
								
								
									
										15
									
								
								accounts/templates/logout.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								accounts/templates/logout.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| {% extends "base_auth.html" %} | ||||
| {% load i18n %} | ||||
| {% block title %}{% trans "WebVirtCloud - Sign Out" %}{% endblock %} | ||||
| {% block content %} | ||||
|     <div class="row"> | ||||
|         <div class="page-header"> | ||||
|             <a href="/"><h1>WebVirtCloud</h1></a> | ||||
|         </div> | ||||
|         <div class="col-xs-12" role="main"> | ||||
|             <div class="logout"> | ||||
|                 <h1>{% trans "Successful log out" %}</h1> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| {% endblock %} | ||||
							
								
								
									
										71
									
								
								accounts/templates/profile.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								accounts/templates/profile.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,71 @@ | |||
| {% extends "base.html" %} | ||||
| {% load i18n %} | ||||
| {% block title %}{% trans "Profile" %}{% endblock %} | ||||
| {% block content %} | ||||
|             <!-- Page Heading --> | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     <h1 class="page-header">{% trans "Profile" %}</h1> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <!-- /.row --> | ||||
| 
 | ||||
|             {% include 'errors_block.html' %} | ||||
| 
 | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     <h3 class="page-header">{% trans "Edit Profile" %}</h3> | ||||
|                     <form class="form-horizontal" method="post" action="" role="form">{% csrf_token %} | ||||
|                         <div class="form-group"> | ||||
|                             <label class="col-sm-2 control-label">{% trans "Login" %}</label> | ||||
|                             <div class="col-sm-4"> | ||||
|                                 <input type="text" class="form-control" value="{{ request.user.username }}" disabled> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group bridge_name_form_group_dhcp"> | ||||
|                             <label class="col-sm-2 control-label">{% trans "Username" %}</label> | ||||
|                             <div class="col-sm-4"> | ||||
|                                 <input type="text" class="form-control" name="username" value="{{ request.user.first_name }}" pattern="[0-9a-zA-Z]+"> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group bridge_name_form_group_dhcp"> | ||||
|                             <label class="col-sm-2 control-label">{% trans "Email" %}</label> | ||||
|                             <div class="col-sm-4"> | ||||
|                                 <input type="email" class="form-control" name="email" value="{{ request.user.email }}"> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group"> | ||||
|                             <div class="col-sm-offset-2 col-sm-10"> | ||||
|                                 <button type="submit" class="btn btn-primary">{% trans "Change" %}</button> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                     </form> | ||||
|                     <h3 class="page-header">{% trans "Edit Password" %}</h3> | ||||
|                     <form class="form-horizontal" method="post" action="" role="form">{% csrf_token %} | ||||
|                         <div class="form-group"> | ||||
|                             <label class="col-sm-2 control-label">{% trans "Old password" %}</label> | ||||
|                             <div class="col-sm-4"> | ||||
|                                 <input type="password" class="form-control" name="oldpasswd" value=""> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group bridge_name_form_group_dhcp"> | ||||
|                             <label class="col-sm-2 control-label">{% trans "New password" %}</label> | ||||
|                             <div class="col-sm-4"> | ||||
|                                 <input type="password" class="form-control" name="passwd1" value=""> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group bridge_name_form_group_dhcp"> | ||||
|                             <label class="col-sm-2 control-label">{% trans "Retry password" %}</label> | ||||
|                             <div class="col-sm-4"> | ||||
|                                 <input type="password" class="form-control" name="passwd2" value=""> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                         <div class="form-group"> | ||||
|                             <div class="col-sm-offset-2 col-sm-10"> | ||||
|                                 <button type="submit" class="btn btn-primary">{% trans "Change" %}</button> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                     </form> | ||||
|                 </div> | ||||
|             </div> | ||||
| {% endblock %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue