Commit 3c80c005 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) firewall/nat move tabs to menu

parent 9c210dd7
...@@ -62,15 +62,19 @@ ...@@ -62,15 +62,19 @@
<Import url="/firewall_aliases_import.php"/> <Import url="/firewall_aliases_import.php"/>
</All> </All>
</Aliases> </Aliases>
<NAT url="/firewall_nat.php"> <NAT cssClass="fa fa-exchange">
<PortForward order="100" VisibleName="Port Forward" url="/firewall_nat.php">
<NatEdit url="/firewall_nat_edit.php*"/> <NatEdit url="/firewall_nat_edit.php*"/>
<PortForward VisibleName="Port Forward" url="/firewall_nat.php"/> </PortForward>
<OneOnOne VisibleName="1:1" url="/firewall_nat_1to1.php"/> <OneOnOne order="200" VisibleName="1:1" url="/firewall_nat_1to1.php">
<OneOnOneEdit url="/firewall_nat_1to1_edit.php*"/> <OneOnOneEdit url="/firewall_nat_1to1_edit.php*"/>
<Outbound url="/firewall_nat_out.php"/> </OneOnOne>
<Outbound order="300" VisibleName="Outbound" url="/firewall_nat_out.php">
<OutboundEdit url="/firewall_nat_out_edit.php*"/> <OutboundEdit url="/firewall_nat_out_edit.php*"/>
<NPt url="/firewall_nat_npt.php"/> </Outbound>
<NPt VisibleName="NPt (IPv6)" order="400" url="/firewall_nat_npt.php">
<NPtEdit url="/firewall_nat_npt_edit.php*"/> <NPtEdit url="/firewall_nat_npt_edit.php*"/>
</NPt>
</NAT> </NAT>
<Rules url="/firewall_rules.php"> <Rules url="/firewall_rules.php">
<RulesEdit url="/firewall_rules_edit.php*"/> <RulesEdit url="/firewall_rules_edit.php*"/>
......
...@@ -229,15 +229,7 @@ $( document ).ready(function() { ...@@ -229,15 +229,7 @@ $( document ).ready(function() {
<?php print_info_box_apply(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br /> <?php print_info_box_apply(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
<?php endif; ?> <?php endif; ?>
<section class="col-xs-12"> <section class="col-xs-12">
<?php <div class="content-box">
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), true, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12">
<form action="firewall_nat.php" method="post" name="iform" id="iform"> <form action="firewall_nat.php" method="post" name="iform" id="iform">
<input type="hidden" id="id" name="id" value="" /> <input type="hidden" id="id" name="id" value="" />
<input type="hidden" id="action" name="act" value="" /> <input type="hidden" id="action" name="act" value="" />
......
...@@ -184,15 +184,7 @@ $main_buttons = array( ...@@ -184,15 +184,7 @@ $main_buttons = array(
gettext("You must apply the changes in order for them to take effect.")); gettext("You must apply the changes in order for them to take effect."));
?> ?>
<section class="col-xs-12"> <section class="col-xs-12">
<?php <div class="content-box">
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), true, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), false, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12">
<form action="firewall_nat_1to1.php" method="post" name="iform" id="iform"> <form action="firewall_nat_1to1.php" method="post" name="iform" id="iform">
<input type="hidden" id="id" name="id" value="" /> <input type="hidden" id="id" name="id" value="" />
<input type="hidden" id="action" name="action" value="" /> <input type="hidden" id="action" name="action" value="" />
......
...@@ -182,15 +182,7 @@ $main_buttons = array( ...@@ -182,15 +182,7 @@ $main_buttons = array(
<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br /> <?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
<?php endif; ?> <?php endif; ?>
<section class="col-xs-12"> <section class="col-xs-12">
<?php <div class="content-box">
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
$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="tab-content content-box col-xs-12">
<form action="firewall_nat_npt.php" method="post" name="iform" id="iform"> <form action="firewall_nat_npt.php" method="post" name="iform" id="iform">
<input type="hidden" id="id" name="id" value="" /> <input type="hidden" id="id" name="id" value="" />
<input type="hidden" id="action" name="act" value="" /> <input type="hidden" id="action" name="act" value="" />
......
...@@ -254,15 +254,7 @@ include("head.inc"); ...@@ -254,15 +254,7 @@ include("head.inc");
<input type="hidden" id="id" name="id" value="" /> <input type="hidden" id="id" name="id" value="" />
<input type="hidden" id="action" name="act" value="" /> <input type="hidden" id="action" name="act" value="" />
<section class="col-xs-12"> <section class="col-xs-12">
<?php <div class="content-box">
$tab_array = array();
$tab_array[] = array(gettext("Port Forward"), false, "firewall_nat.php");
$tab_array[] = array(gettext("1:1"), false, "firewall_nat_1to1.php");
$tab_array[] = array(gettext("Outbound"), true, "firewall_nat_out.php");
$tab_array[] = array(gettext("NPt"), false, "firewall_nat_npt.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment