summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_npt.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-13 15:11:23 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-13 15:11:23 -0500
commit060ed23871a0933021e68078efceb6ed64658d82 (patch)
tree434e5315f7aefb15e389f439133a9a41e40340f7 /src/usr/local/www/firewall_nat_npt.php
parentd642aca406161552dbd6b2c19585eaba42a242a6 (diff)
downloadpfsense-060ed23871a0933021e68078efceb6ed64658d82.zip
pfsense-060ed23871a0933021e68078efceb6ed64658d82.tar.gz
Fixed #5566
Diffstat (limited to 'src/usr/local/www/firewall_nat_npt.php')
-rw-r--r--src/usr/local/www/firewall_nat_npt.php75
1 files changed, 40 insertions, 35 deletions
diff --git a/src/usr/local/www/firewall_nat_npt.php b/src/usr/local/www/firewall_nat_npt.php
index 3c3f441..2e62fba 100644
--- a/src/usr/local/www/firewall_nat_npt.php
+++ b/src/usr/local/www/firewall_nat_npt.php
@@ -119,28 +119,30 @@ $tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), true, "firewall_nat_npt.php");
display_top_tabs($tab_array);
?>
-
-<div class="panel-body table responsive">
- <form method="post">
- <table class="table table-striped table-hover table-condensed">
- <thead>
- <tr>
- <th><?=gettext("Interface")?></th>
- <th><?=gettext("External Prefix")?></th>
- <th><?=gettext("Internal prefix")?></th>
- <th><?=gettext("Description")?></th>
- <th><!-- Buttons --></th>
- </tr>
- </thead>
- <tbody class="user-entries">
+<div class="panel panel-default">
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext('NPt mappings')?></h2></div>
+ <div class="panel-body">
+ <div class="table responsive">
+ <form method="post">
+ <table class="table table-striped table-hover table-condensed">
+ <thead>
+ <tr>
+ <th><?=gettext("Interface")?></th>
+ <th><?=gettext("External Prefix")?></th>
+ <th><?=gettext("Internal prefix")?></th>
+ <th><?=gettext("Description")?></th>
+ <th><!-- Buttons --></th>
+ </tr>
+ </thead>
+ <tbody class="user-entries">
<?php
$i = 0;
foreach ($a_npt as $natent):
?>
- <tr<?=isset($natent['disabled'])? ' class="disabled"' : ''?>>
- <td>
- <input type="hidden" name="rule[]" value="<?=$i?>" />
+ <tr<?=isset($natent['disabled'])? ' class="disabled"' : ''?>>
+ <td>
+ <input type="hidden" name="rule[]" value="<?=$i?>" />
<?php
if (!$natent['interface']) {
print(htmlspecialchars(convert_friendly_interface_to_friendly_descr("wan")));
@@ -155,27 +157,30 @@ foreach ($a_npt as $natent):
$destination_net = pprint_address($natent['destination']);
$destination_cidr = strstr($destination_net, '/');
?>
- <td>
- <?=$destination_net?>
- </td>
- <td>
- <?=$source_net?>
- </td>
- <td>
- <?=htmlspecialchars($natent['descr'])?>
- </td>
- <td>
- <a href="firewall_nat_npt_edit.php?id=<?=$i?>" class="btn btn-xs btn-info"><?=gettext("Edit")?></a>
- <a href="firewall_nat_npt.php?act=del&amp;id=<?=$i?>" class="btn btn-xs btn-danger"><?=gettext("Delete")?></a>
- </td>
- </tr>
+ <td>
+ <?=$destination_net?>
+ </td>
+ <td>
+ <?=$source_net?>
+ </td>
+ <td>
+ <?=htmlspecialchars($natent['descr'])?>
+ </td>
+ <td>
+ <a href="firewall_nat_npt_edit.php?id=<?=$i?>" class="btn btn-xs btn-info"><?=gettext("Edit")?></a>
+ <a href="firewall_nat_npt.php?act=del&amp;id=<?=$i?>" class="btn btn-xs btn-danger"><?=gettext("Delete")?></a>
+ </td>
+ </tr>
<?php
$i++;
endforeach;
?>
- </tbody>
- </table>
-</form>
+ </tbody>
+ </table>
+ </div>
+ </div>
+</div>
+
<nav class="action-buttons">
<a href="firewall_nat_npt_edit.php" class="btn btn-sm btn-success">
@@ -187,8 +192,8 @@ endforeach;
<?=gettext("Save")?>
</button>
</nav>
+</form>
-</div>
<script type="text/javascript">
//<![CDATA[
events.push(function() {
OpenPOWER on IntegriCloud