Commit 27dbf565 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix move to end and some typo's in firewall_virtual_ip.php

parent 30fa415d
...@@ -195,7 +195,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -195,7 +195,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// move selected rules // move selected rules
if (!isset($id)) { if (!isset($id)) {
// if rule not set/found, move to end // if rule not set/found, move to end
$id = count($a_nat); $id = count($a_vip);
} }
$a_vip = legacy_move_config_list_items($a_vip, $id, $pconfig['rule']); $a_vip = legacy_move_config_list_items($a_vip, $id, $pconfig['rule']);
write_config(); write_config();
...@@ -222,7 +222,7 @@ $main_buttons = array( ...@@ -222,7 +222,7 @@ $main_buttons = array(
// delete single // delete single
BootstrapDialog.show({ BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO, type:BootstrapDialog.TYPE_INFO,
title: "<?= gettext("Alias");?>", title: "<?= gettext("Virtual IP");?>",
message: "<?=gettext("Do you really want to delete this entry?");?>", message: "<?=gettext("Do you really want to delete this entry?");?>",
buttons: [{ buttons: [{
label: "<?= gettext("No");?>", label: "<?= gettext("No");?>",
...@@ -308,13 +308,13 @@ $main_buttons = array( ...@@ -308,13 +308,13 @@ $main_buttons = array(
<?=htmlspecialchars($vipent['descr']);?> <?=htmlspecialchars($vipent['descr']);?>
</td> </td>
<td> <td>
<a id="move_<?=$i;?>" name="move_<?=$i;?>_x" data-toggle="tooltip" data-placement="left" title="<?=gettext("move selected alias before this rule");?>" class="act_move btn btn-default btn-xs"> <a id="move_<?=$i;?>" name="move_<?=$i;?>_x" data-toggle="tooltip" data-placement="left" title="<?=gettext("move selected virtual ip before this rule");?>" class="act_move btn btn-default btn-xs">
<span class="glyphicon glyphicon-arrow-left"></span> <span class="glyphicon glyphicon-arrow-left"></span>
</a> </a>
<a href="firewall_virtual_ip_edit.php?id=<?=$i;?>" data-toggle="tooltip" data-placement="left" title="<?=gettext("edit this alias");?>" class="btn btn-default btn-xs"> <a href="firewall_virtual_ip_edit.php?id=<?=$i;?>" data-toggle="tooltip" data-placement="left" title="<?=gettext("edit this virtual ip");?>" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-pencil"></span> <span class="glyphicon glyphicon-pencil"></span>
</a> </a>
<a id="del_<?=$i;?>" title="<?=gettext("delete this alias"); ?>" data-toggle="tooltip" class="act_delete btn btn-default btn-xs"> <a id="del_<?=$i;?>" title="<?=gettext("delete this virtual ip"); ?>" data-toggle="tooltip" class="act_delete btn btn-default btn-xs">
<span class="glyphicon glyphicon-remove"></span> <span class="glyphicon glyphicon-remove"></span>
</a> </a>
<a href="firewall_virtual_ip_edit.php?dup=<?=$i;?>" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="left" title="<?=gettext("add new rule based on this one");?>"> <a href="firewall_virtual_ip_edit.php?dup=<?=$i;?>" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="left" title="<?=gettext("add new rule based on this one");?>">
......
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