mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Rearrange host resources variables and change variable names
This commit is contained in:
		
							parent
							
								
									828a271789
								
							
						
					
					
						commit
						d22aed5ef7
					
				
					 4 changed files with 23 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -24,10 +24,10 @@
 | 
			
		|||
                            <label class="col-sm-4 control-label">{% trans "Network" %}</label>
 | 
			
		||||
                            <div class="col-sm-6">
 | 
			
		||||
                                <select class="form-control" name="add-net-network">
 | 
			
		||||
                                    {% for c_net in compute_networks %}
 | 
			
		||||
                                    {% for c_net in networks_host %}
 | 
			
		||||
                                        <option value="net:{{ c_net }}">Network {{ c_net }}</option>
 | 
			
		||||
                                    {% endfor %}
 | 
			
		||||
                                    {% for c_iface in compute_interfaces %}
 | 
			
		||||
                                    {% for c_iface in interfaces_host %}
 | 
			
		||||
                                        <option value="iface:{{ c_iface }}">Interface {{ c_iface }}</option>
 | 
			
		||||
                                    {% endfor %}
 | 
			
		||||
                                </select>
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +38,7 @@
 | 
			
		|||
                            <div class="col-sm-6">
 | 
			
		||||
                                <select class="form-control" name="add-net-nwfilter">
 | 
			
		||||
                                    <option value="">{% trans "None" %}</option>
 | 
			
		||||
                                    {% for nwfilter in compute_nwfilters %}
 | 
			
		||||
                                    {% for nwfilter in nwfilters_host %}
 | 
			
		||||
                                        <option value="{{ nwfilter }}">{{ nwfilter }}</option>
 | 
			
		||||
                                    {% endfor %}
 | 
			
		||||
                                </select>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,7 +28,7 @@
 | 
			
		|||
                                    <label class="col-sm-3 control-label">{% trans "Storage" %}</label>
 | 
			
		||||
                                    <div class="col-sm-4">
 | 
			
		||||
                                        <select name="storage" class="form-control image-format">
 | 
			
		||||
                                            {% for storage in storages %}
 | 
			
		||||
                                            {% for storage in storages_host %}
 | 
			
		||||
                                                <option value="{{ storage }}">{{ storage }}</option>
 | 
			
		||||
                                            {% endfor %}
 | 
			
		||||
                                        </select>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -873,10 +873,10 @@
 | 
			
		|||
                                                <input class="form-control" type="text" value="{{ network.nic }}" readonly/>
 | 
			
		||||
                                                <label class="control-label"><em>to</em></label>
 | 
			
		||||
                                                <select class="form-control" name="net-source-{{ forloop.counter0 }}">
 | 
			
		||||
                                                    {% for c_net in compute_networks %}
 | 
			
		||||
                                                    {% for c_net in networks_host %}
 | 
			
		||||
                                                        <option value="net:{{ c_net }}" {% ifequal c_net network.nic %} selected {% endifequal %}>{% trans 'Network' %} {{ c_net }}</option>
 | 
			
		||||
                                                    {% endfor %}
 | 
			
		||||
                                                    {% for c_iface in compute_interfaces %}
 | 
			
		||||
                                                    {% for c_iface in interfaces_host %}
 | 
			
		||||
                                                        <option value="iface:{{ c_iface }}" {% ifequal c_iface network.nic %} selected {% endifequal %}>{% trans 'Interface' %} {{ c_iface }}</option>
 | 
			
		||||
                                                    {% endfor %}
 | 
			
		||||
                                                </select>
 | 
			
		||||
| 
						 | 
				
			
			@ -887,7 +887,7 @@
 | 
			
		|||
                                                <label class="control-label"><em>to</em></label>
 | 
			
		||||
                                                <select class="form-control" name="net-nwfilter-{{ forloop.counter0 }}">
 | 
			
		||||
                                                    <option value="">{% trans "None" %}</option>
 | 
			
		||||
                                                    {% for c_filters in compute_nwfilters %}
 | 
			
		||||
                                                    {% for c_filters in nwfilters_host %}
 | 
			
		||||
                                                        <option value="{{ c_filters }}" {% ifequal c_filters network.filterref  %} selected {% endifequal %}>{{ c_filters }}</option>
 | 
			
		||||
                                                    {% endfor %}
 | 
			
		||||
                                                </select>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue