removed old markup
This commit is contained in:
		
					parent
					
						
							
								337021a470
							
						
					
				
			
			
				commit
				
					
						df97a16a26
					
				
			
		
					 1 changed files with 0 additions and 86 deletions
				
			
		|  | @ -70,90 +70,4 @@ | |||
|         </div> | ||||
|     {% endif %} | ||||
| </div> | ||||
| 
 | ||||
| {% comment %} | ||||
| <div> | ||||
| 	<div class="dashboard-container"> | ||||
| 		<div class="row"> | ||||
| 			<div class="col-xs-12  container-table"> | ||||
| 				<table class="table borderless table-hover"> | ||||
| 				<h3 class="pull-left"><i class="fa fa-server fa-separate" aria-hidden="true"></i> {% trans "Virtual Machines"%}</h3> | ||||
|                 <div class="col-md-12"> | ||||
|                     <br/> | ||||
|                     {% if messages %} | ||||
|                         <div class="alert alert-warning"> | ||||
|                             {% for message in messages %} | ||||
|                             <span>{{ message }}</span> | ||||
|                             {% endfor %} | ||||
|                         </div> | ||||
|                     {% endif %} | ||||
|                 </div> | ||||
|                 {% if not error %} | ||||
|                 <p class="pull-right btn-create-vm"> | ||||
|                     <a class="btn btn-success" href="{% url 'hosting:create_virtual_machine' %}" >{% trans "Create VM"%} </a> | ||||
|                 </p> | ||||
| 				<br/> | ||||
| 
 | ||||
| 				<thead> | ||||
| 				<tr> | ||||
| 					<th>{% trans "ID"%}</th> | ||||
|                     <th>{% trans "Ipv4"%}</th> | ||||
| 					<th>{% trans "Ipv6"%}</th> | ||||
| 					<th>{% trans "Status"%}</th> | ||||
| 					<th></th> | ||||
| 				</tr> | ||||
| 				</thead> | ||||
| 				<tbody> | ||||
| 					{% for vm in vms %} | ||||
| 					<tr> | ||||
| 						<td scope="row">{{vm.vm_id}}</td> | ||||
|                         {% if vm.ipv6  %} | ||||
| 						  <td>{{vm.ipv4}}</td> | ||||
| 
 | ||||
|                           <td>{{vm.ipv6}}</td> | ||||
|                         {% endif %} | ||||
| 
 | ||||
| 						<td> | ||||
| 
 | ||||
| 							{% if vm.state == 'ACTIVE' %} | ||||
| 								<span class="h3 label label-success"><strong> {{vm.state}}</strong></span> | ||||
| 							{% elif  vm.state == 'FAILED' %} | ||||
| 								<span class="h3 label label-danger"><strong>{{vm.state}}</strong></span> | ||||
| 							{% else %} | ||||
| 								<span class="h3 label label-warning"><strong>{{vm.state}}</strong></span> | ||||
| 							{% endif %} | ||||
| 
 | ||||
| 						</td> | ||||
| 						<td> | ||||
|                             <button type="button" class="btn btn-default"><a | ||||
|                                     href="{% url 'hosting:virtual_machines' vm.vm_id %}">{% trans "View Detail"%}</a></button> | ||||
|                         </td> | ||||
| 					</tr> | ||||
| 					{% endfor %} | ||||
| 				</tbody> | ||||
|                 {% endif %} | ||||
|                 </table> | ||||
| 
 | ||||
| 			    {% if is_paginated %} | ||||
| 			        <div class="pagination"> | ||||
| 			            <span class="page-links"> | ||||
| 			                {% if page_obj.has_previous %} | ||||
| 			                    <a href="{{request.path}}?page={{ page_obj.previous_page_number }}">{% trans "previous"%}</a> | ||||
| 			                {% endif %} | ||||
| 			                <span class="page-current"> | ||||
| 			                    Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. | ||||
| 			                </span> | ||||
| 			                {% if page_obj.has_next %} | ||||
| 			                    <a href="{{request.path}}?page={{ page_obj.next_page_number }}">{% trans "next"%}</a> | ||||
| 			                {% endif %} | ||||
| 			            </span> | ||||
| 			        </div> | ||||
| 			    {% endif %} | ||||
| 			</div> | ||||
| 
 | ||||
| 	    </div> | ||||
| 	</div> | ||||
| 
 | ||||
| </div> | ||||
| {% endcomment %} | ||||
| {%endblock%} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue