Commit 94404c1c authored by Ad Schellevis's avatar Ad Schellevis

(legacy) firewall_aliases.php tab to menu

parent accb491c
...@@ -51,12 +51,15 @@ ...@@ -51,12 +51,15 @@
</Assign> </Assign>
</Interfaces> </Interfaces>
<Firewall order="3" cssClass="glyphicon glyphicon-fire"> <Firewall order="3" cssClass="glyphicon glyphicon-fire">
<Aliases url="/firewall_aliases.php"> <Aliases cssClass="fa fa-list-alt">
<IP order="100" url="/firewall_aliases.php?tab=ip"/>
<Ports order="200" url="/firewall_aliases.php?tab=port"/>
<URLs order="300" url="/firewall_aliases.php?tab=url"/>
<All order="400" url="/firewall_aliases.php?tab=all">
<AliasesEdit url="/firewall_aliases_edit.php*"/> <AliasesEdit url="/firewall_aliases_edit.php*"/>
<IP url="/firewall_aliases.php?tab=ip"/> <Import url="/firewall_aliases_import.php"/>
<Ports url="/firewall_aliases.php?tab=port"/> <none url="/firewall_aliases.php"/>
<URLs url="/firewall_aliases.php?tab=url"/> </All>
<All url="/firewall_aliases.php?tab=all"/>
</Aliases> </Aliases>
<NAT url="/firewall_nat.php"> <NAT url="/firewall_nat.php">
<NatEdit url="/firewall_nat_edit.php*"/> <NatEdit url="/firewall_nat_edit.php*"/>
......
...@@ -180,15 +180,7 @@ $( document ).ready(function() { ...@@ -180,15 +180,7 @@ $( document ).ready(function() {
<?php print_info_box_np(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));?> <?php print_info_box_np(gettext("The alias list has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));?>
<?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("IP"),($selected_tab=="ip" ? true : ($selected_tab=="host" ? true : ($selected_tab == "network" ? true : false))), "/firewall_aliases.php?tab=ip");
$tab_array[] = array(gettext("Ports"), ($selected_tab=="port"? true : false), "/firewall_aliases.php?tab=port");
$tab_array[] = array(gettext("URLs"), ($selected_tab=="url"? true : false), "/firewall_aliases.php?tab=url");
$tab_array[] = array(gettext("All"), ($selected_tab=="all"? true : false), "/firewall_aliases.php?tab=all");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12">
<form action="firewall_aliases.php" method="post" name="iform" id="iform"> <form action="firewall_aliases.php" method="post" name="iform" id="iform">
<input type="hidden" name="tab" value="<?=$selected_tab;?>" /> <input type="hidden" name="tab" value="<?=$selected_tab;?>" />
<input type="hidden" name="id" value="" id="delId"/> <input type="hidden" name="id" value="" id="delId"/>
......
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