Revision 7b50e98b templates/apply.html

b/templates/apply.html
126 126
				$('#port_diag').dialog('open');
127 127
				return false;
128 128
			});
129
			
130
		$("#portsacc").accordion({
131
			collapsible: true,
132
			active: false,
133

  
134
		});
135
		
136
		$("#applybutton").button();
137

  
129 138
		});
130 139
		
131 140
</script>
......
138 147
	vertical-align: top;
139 148
}
140 149

  
150
.accord_wrapper{
151
	height: 100% !important;
152
} 
153

  
141 154
.help {
142 155
	font-style: italic;
143 156

  
......
170 183
<input type="hidden" id="id_applier" name="applier" value="{{applier}}"/>
171 184
<tr><th>{{ form.source.label_tag }}</th><td>{{ form.source }}<span class="error">{{ form.source.errors|join:", " }}</span></td></tr>
172 185
<tr class="help"><td></td><td>{{ form.source.help_text }}</td></tr>
173
<tr><th>{{ form.sourceport.label_tag }}</th><td>{{ form.sourceport }}&nbsp;&nbsp;<button class="new_port">Port</button><span class="error">{{ form.sourceport.errors|join:", " }}</span></td></tr>
174
<tr class="help"><td></td><td>{{ form.sourceport.help_text }}</td></tr>
175 186
<tr><th>{{ form.destination.label_tag }}</th><td>{{ form.destination }}<span class="error">{{ form.destination.errors|join:", " }}</span></td></tr>
176 187
<tr class="help"><td></td><td>{{ form.destination.help_text }}</td></tr>
188
</table>
189
<div id='portsacc' style="width: 500px;">
190
	<h3 style="padding: 0.5em 0.5em 0.5em 0.7em;">Advanced Settings (Ports)</h3>
191
	<div class='accord_wrapper' style="height: 100% !important;">
192
	Select source/destination port(s), or select common port(s) for both source/destination
193
<table>
194
<tr><th>{{ form.sourceport.label_tag }}</th><td>{{ form.sourceport }}&nbsp;&nbsp;<button class="new_port">Port</button><span class="error">{{ form.sourceport.errors|join:", " }}</span></td></tr>
195
<tr class="help"><td></td><td>{{ form.sourceport.help_text }}</td></tr>
177 196
<tr><th>{{ form.destinationport.label_tag }}</th><td>{{ form.destinationport }}&nbsp;&nbsp;<button class="new_port">Port</button><span class="error">{{ form.destinationport.errors|join:", " }}</span></td></tr>
178 197
<tr class="help"><td></td><td>{{ form.destinationport.help_text }}</td></tr>
179 198
<tr><th>{{ form.port.label_tag }}</th><td>{{ form.port }}&nbsp;&nbsp;<button class="new_port">Port</button><span class="error">{{ form.port.errors|join:", " }}</span></td></tr>
180 199
<tr class="help"><td></td><td>{{ form.port.help_text }}</td></tr>
200
</div>
181 201
</table>
202
</div>
182 203
</fieldset>
183 204
<fieldset>
184 205
<legend>{% trans "Rule Actions" %}</legend>
......
202 223
</p>
203 224
</fieldset>
204 225

  
205
<p><input type="submit" value="{% trans "Apply" %}" /></p>
226
<p><input type="submit" id="applybutton" value="{% trans "Apply" %}" /></p>
206 227
</form>
207 228
</div>
208 229

  

Also available in: Unified diff