Revision f9106085
Added by Erik Fonnesbeck almost 15 years ago
usr/local/www/firewall_nat_out_edit.php | ||
---|---|---|
293 | 293 |
break; |
294 | 294 |
} |
295 | 295 |
} |
296 |
function nonat_change() { |
|
297 |
if (document.iform.nonat.checked) { |
|
298 |
document.getElementById("transtable").style.display = 'none'; |
|
299 |
} else { |
|
300 |
document.getElementById("transtable").style.display = ''; |
|
301 |
} |
|
302 |
} |
|
296 | 303 |
//--> |
297 | 304 |
</script> |
298 | 305 |
</head> |
... | ... | |
308 | 315 |
<tr> |
309 | 316 |
<td width="22%" valign="top" class="vncell"><?=gettext("Do not NAT");?></td> |
310 | 317 |
<td width="78%" class="vtable"> |
311 |
<input type="checkbox" name="nonat"<?php if(isset($pconfig['nonat'])) echo " CHECKED"; ?>> |
|
318 |
<input type="checkbox" name="nonat" id="nonat" onClick="nonat_change();" <?php if(isset($pconfig['nonat'])) echo " CHECKED"; ?>>
|
|
312 | 319 |
<span class="vexpl"><?=gettext("Enabling this option will disable NAT for traffic matching this rule and stop processing Outbound NAT rules.");?> |
313 | 320 |
<br><?=gettext("Hint: in most cases, you won't use this option.");?></span></td> |
314 | 321 |
</tr> |
... | ... | |
434 | 441 |
</table> |
435 | 442 |
</td> |
436 | 443 |
</tr> |
437 |
<tr> |
|
444 |
<tr name="transtable" id="transtable">
|
|
438 | 445 |
<td width="22%" valign="top" class="vncell"><?=gettext("Translation");?></td> |
439 | 446 |
<td width="78%" class="vtable"> |
440 | 447 |
<table border="0" cellspacing="1" cellpadding="1"> |
... | ... | |
514 | 521 |
sourcesel_change(); |
515 | 522 |
typesel_change(); |
516 | 523 |
staticportchange(); |
524 |
nonat_change(); |
|
517 | 525 |
//--> |
518 | 526 |
</script> |
519 | 527 |
<?php include("fend.inc"); ?> |
Also available in: Unified diff
Hide translation section when "Do not NAT" is checked. Fixes #952