Revision 11a6f29c
Added by Stephen Beaver almost 10 years ago
src/usr/local/www/firewall_nat_out.php | ||
---|---|---|
129 | 129 |
} |
130 | 130 |
} |
131 | 131 |
|
132 |
if (isset($_POST['save']) && $_POST['save'] == gettext("Save")) {
|
|
132 |
if ($_POST['save']) {
|
|
133 | 133 |
/* mutually exclusive settings - if user wants advanced NAT, we don't generate automatic rules */ |
134 | 134 |
if ($_POST['mode'] == "advanced" && ($mode == "automatic" || $mode == "hybrid")) { |
135 | 135 |
/* |
... | ... | |
140 | 140 |
if (empty($FilterIflist)) { |
141 | 141 |
filter_generate_optcfg_array(); |
142 | 142 |
} |
143 |
|
|
143 | 144 |
if (empty($GatewaysList)) { |
144 | 145 |
filter_generate_gateways(); |
145 | 146 |
} |
147 |
|
|
146 | 148 |
$tonathosts = filter_nat_rules_automatic_tonathosts(true); |
147 | 149 |
$automatic_rules = filter_nat_rules_outbound_automatic(""); |
148 | 150 |
|
... | ... | |
345 | 347 |
|
346 | 348 |
<td> |
347 | 349 |
<?php |
348 |
if ($mode == "disabled" || $mode == "automatic"):
|
|
350 |
if ($mode == "disabled" || $mode == "automatic"): |
|
349 | 351 |
?> |
350 |
<i class="<?= ($iconfn == "pass") ? "icon-ok":"icon-remove"?>" title="<?=gettext("Click to toggle enabled/disabled status")?>"></i>
|
|
352 |
<i class="<?= ($iconfn == "pass") ? "icon-ok":"icon-remove"?>" title="<?=gettext("This rule is being ignored")?>"></i>
|
|
351 | 353 |
<?php |
352 |
else:
|
|
354 |
else: |
|
353 | 355 |
?> |
354 | 356 |
<a href="?act=toggle&id=<?=$i?>"> |
355 | 357 |
<i class="<?= ($iconfn == "pass") ? "icon-ok":"icon-remove"?>" title="<?=gettext("Click to toggle enabled/disabled status")?>"></i> |
356 | 358 |
</a> |
357 | 359 |
|
358 | 360 |
<?php |
359 |
endif;
|
|
361 |
endif; |
|
360 | 362 |
?> |
361 | 363 |
</td> |
362 | 364 |
|
... | ... | |
497 | 499 |
|
498 | 500 |
<!-- Action icons --> |
499 | 501 |
<td> |
500 |
<a class="btn btn-xs btn-info" title="<?=gettext("Edit mapping")?>" href="firewall_nat_out_edit.php?id=<?=$i?>"><?=gettext("Edit")?></a> |
|
501 |
<a class="btn btn-xs btn-danger" title="<?=gettext("Delete mapping")?>" href="firewall_nat_out.php?act=del&id=<?=$i?>"><?=gettext("Del")?></a> |
|
502 |
<a class="btn btn-xs btn-success" title="<?=gettext("Add a new mapping based on this one")?>" href="firewall_nat_out_edit.php?dup=<?=$i?>"><?=gettext("Clone")?></a> |
|
502 |
<a class="icon icon-pencil" title="<?=gettext("Edit mapping")?>" href="firewall_nat_out_edit.php?id=<?=$i?>"></a> |
|
503 |
<a class="icon icon-ban-circle" title="<?=gettext("Delete mapping")?>" href="firewall_nat_out.php?act=del&id=<?=$i?>" |
|
504 |
onclick="return confirm('<?=gettext("Are you sure you want to delete this mapping?")?>')"></a> |
|
505 |
<a class="icon icon-plus" title="<?=gettext("Add a new mapping based on this one")?>" href="firewall_nat_out_edit.php?dup=<?=$i?>"></a> |
|
503 | 506 |
</td> |
504 | 507 |
<?php |
505 | 508 |
$i++; |
... | ... | |
667 | 670 |
var cells = row.getElementsByTagName('td'); |
668 | 671 |
var cellcnt = cells.length; |
669 | 672 |
|
670 |
for (i = 0; i < cellcnt-1; i++) {
|
|
673 |
for (i = 0; i < cellcnt; i++) { |
|
671 | 674 |
cells[i].style.backgroundColor = checkbox.checked ? "#DDF4FF" : "#FFFFFF"; |
672 | 675 |
} |
673 | 676 |
} |
Also available in: Unified diff
Fixed #5342