mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Do not show Network devices header if there is not any.
This commit is contained in:
		
							parent
							
								
									a7e0e49007
								
							
						
					
					
						commit
						e28cc71710
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -805,13 +805,16 @@
 | 
			
		|||
                                                </div>
 | 
			
		||||
                                                <div role="tabpanel" class="tab-pane tab-pane-bordered" id="network">
 | 
			
		||||
                                                    <p>
 | 
			
		||||
                                                        {% trans "Assign network device to bridge" %}
 | 
			
		||||
                                                        {% trans "Add a network device" %}
 | 
			
		||||
                                                        {% include 'add_instance_network_block.html' %}
 | 
			
		||||
                                                    </p>
 | 
			
		||||
                                                    <p style="font-weight:bold;">{% trans "Network devices" %}</p>
 | 
			
		||||
 | 
			
		||||
                                                <div class="col-xs-12 col-sm-12">
 | 
			
		||||
                                                    <form method="post" role="form">{% csrf_token %}
 | 
			
		||||
                                                        {% for network in networks %}
 | 
			
		||||
                                                            {% if forloop.first %}
 | 
			
		||||
                                                                <p><strong>{% trans "Network Devices" %}</strong></p>
 | 
			
		||||
                                                            {% endif %}
 | 
			
		||||
                                                            <div class="panel panel-default">
 | 
			
		||||
                                                                <div class="panel-heading">
 | 
			
		||||
                                                                    <label>eth{{ forloop.counter0 }}({{ network.target|default:"no target" }})</label>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue