Revision 802dfff6 templates/apply.html

b/templates/apply.html
23 23
	$(document).ready( function(){
24 24
		
25 25
		
26
		$('#setFromAll').click(function(){
27
			$("#id_source").val('0.0.0.0/32');
28
			return false;
29
		});
30
		
31
		
26 32
		$('#id_then').attr("multiple", "");
27 33
		$( "#id_expires" ).datepicker({ dateFormat: 'yy-mm-dd' , maxDate: '+10d', minDate: '+1d', changeMonth: false, changeYear: false }).datepicker( $.datepicker.regional[ "el" ] );
28 34
		{% comment %}
......
198 204
                    {% trans "Rule Basic Info" %}
199 205
                </legend>
200 206
                <div class="control-group  {% if form.name.errors %} error {% endif %}">
201
	                <label class="control-label" for="id_name">{% trans "Name" %}</label>
207
	                <label class="control-label" for="id_name"><b>{% trans "Name" %}</b></label>
202 208
                    <div class="controls">
203 209
                    {{ form.name }}
204 210
                    {% if form.name.errors %}
......
216 222
                    {% trans "Admin Options" %}
217 223
                </legend>
218 224
                  <div class="control-group">
219
	                <label class="control-label" for="id_applier">{% trans "Applier" %}</label>
225
	                <label class="control-label" for="id_applier"><b>{% trans "Applier" %}</b></label>
220 226
                   <div class="controls">{{ form.applier }}</div>
221 227
                    {% if form.applier.errors %}
222 228
                    <br>
......
234 240
                    {% trans "Rule Match Conditions" %}
235 241
                </legend>
236 242
                <div class="control-group {% if form.source.errors %} error {% endif %}">
237
	                <label class="control-label" for="id_source">{% trans "Source Address" %}</label>
238
                    <div class="controls">{{ form.source }}&nbsp;<img src="/fodstatic/threat_source.png" style="height: 30px;"/>
243
	                <label class="control-label" for="id_source"><b>{% trans "Source Address" %}</b></label>
244
                    <div class="controls">{{ form.source }}&nbsp;<img src="/fodstatic/threat_source.png" style="height: 30px;"/>&nbsp;&nbsp;<a class="btn btn-small btn-info" id="setFromAll" href="#">Any</a>
239 245
                    {% if form.source.errors %}
240 246
                    <span class="help-inline">
241 247
                        {{ form.source.errors|join:", " }}
......
247 253

  
248 254
                </div>
249 255
                <div class="control-group {% if form.destination.errors %} error {% endif %}">
250
	                <label class="control-label" for="id_destination">{% trans "Destination Address" %}</label>
256
	                <label class="control-label" for="id_destination"><b>{% trans "Destination Address" %}</b></label>
251 257
                    <div class="controls">
252 258
					{{ form.destination }}&nbsp;<img src="/fodstatic/secure_destination.png" style="height: 30px;"/>
253 259
					{% if form.destination.errors %}
......
342 348
                    {% trans "Rule Actions" %}
343 349
                </legend>
344 350
                <div class="control-group {% if form.then.errors %} error {% endif %}">
345
	                <label class="control-label" for="id_then">{% trans "Then" %}</label>
351
	                <label class="control-label" for="id_then"><b>{% trans "Then" %}</b></label>
346 352
                    <div class="controls">{{ form.then }}
347 353
                    {% if form.then.errors %}
348 354
                    <span class="help-inline">

Also available in: Unified diff