summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-03-08 13:36:30 -0500
committerjim-p <jimp@pfsense.org>2016-03-08 13:36:30 -0500
commit3e608769908c965cc7ff1d462cc96ff6fdb6023a (patch)
treeceb44ece5c62aa345c82952312226525d5ad1d86 /src
parent719635b2a7266af1d07551375fb21bb8c08bd463 (diff)
downloadpfsense-3e608769908c965cc7ff1d462cc96ff6fdb6023a.zip
pfsense-3e608769908c965cc7ff1d462cc96ff6fdb6023a.tar.gz
Add visual indication of negation on Outbound NAT list. Fix static port representation to use an icon with a helpful title. Ticket #5965
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/firewall_nat_out.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/usr/local/www/firewall_nat_out.php b/src/usr/local/www/firewall_nat_out.php
index 0ea354e..07f9807 100644
--- a/src/usr/local/www/firewall_nat_out.php
+++ b/src/usr/local/www/firewall_nat_out.php
@@ -364,6 +364,10 @@ print($form);
<?php
endif;
?>
+<?php if (isset($natent['nonat'])): ?>
+ &nbsp;<i class="fa fa-hand-stop-o text-danger" title="<?=gettext("Negated: This rule excludes NAT from a later rule")?>"></i>
+<?php endif; ?>
+
</td>
<td>
@@ -491,13 +495,11 @@ print($form);
</td>
<td>
-<?php
- if (isset($natent['staticnatport'])) {
- echo gettext("YES");
- } else {
- echo gettext("NO");
- }
-?>
+<?php if (isset($natent['staticnatport'])) { ?>
+ <i class="fa fa-check" title="Keep Source Port Static"></i>
+<?php } else { ?>
+ <i class="fa fa-random" title="Randomize Source Port"></i>
+<?php } ?>
</td>
<td>
@@ -642,13 +644,11 @@ if ($mode == "automatic" || $mode == "hybrid"):
?>
</td>
<td>
-<?php
- if (isset($natent['staticnatport'])) {
- echo gettext("YES");
- } else {
- echo gettext("NO");
- }
-?>
+<?php if (isset($natent['staticnatport'])) { ?>
+ <i class="fa fa-check" title="Keep Source Port Static"></i>
+<?php } else { ?>
+ <i class="fa fa-random" title="Randomize Source Port"></i>
+<?php } ?>
</td>
<td>
<?=htmlspecialchars($natent['descr'])?>
OpenPOWER on IntegriCloud