<ahref="#"class="act_toggle"id="toggle_<?=$nnats;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("click to toggle enabled/disabled status");?>">
<atype="submit"id="move_<?=$nnats;?>"name="move_<?=$nnats;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_nat_edit.php?id=<?=$nnats;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this rule");?>"class="btn btn-default btn-xs">
<ahref="firewall_nat_edit.php?dup=<?=$nnats;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule based on this one");?>">
<atype="submit"id="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected mapping before this rule");?>"class="act_move btn btn-default btn-xs">
<atype="submit"id="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_nat_1to1_edit.php?id=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this mapping");?>">
<ahref="firewall_nat_1to1_edit.php?dup=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new mapping based on this one");?>"class="btn btn-default btn-xs">
<ahref="#"class="act_toggle"id="toggle_<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("click to toggle enabled/disabled status");?>">
<ahref="firewall_nat_npt_edit.php?id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this rule");?>"class="btn btn-default btn-xs">
<ahref="firewall_nat_npt_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");?>">
<spandata-toggle="tooltip"title="<?=gettext("This rule is being ignored");?>"class="glyphicon glyphicon-play <?=$mode=="disabled"||$mode=="automatic"||isset($natent['disabled'])?"text-muted":"text-success";?>"></span>
<spandata-toggle="tooltip"title="<?=gettext("All manual rules are being ignored");?>"class="glyphicon glyphicon-play <?=$mode=="disabled"||$mode=="automatic"||isset($natent['disabled'])?"text-muted":"text-success";?>"></span>
<?php
else:
?>
<ahref="#"class="act_toggle"id="toggle_<?=$i;?>"data-toggle="tooltip"title="<?=gettext("click to toggle enabled/disabled status");?>"class="btn btn-default btn-xs <?=isset($natent['disabled'])?"text-muted":"text-success";?>">
<atype="submit"id="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_nat_out_edit.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add a new NAT based on this one");?>">
<ahref="#"class="act_toggle"id="toggle_<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("click to toggle enabled/disabled status");?>">
<aid="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_rules_edit.php?id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this rule");?>"class="btn btn-default btn-xs">
<ahref="firewall_rules_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");?>">
<ahref="firewall_schedule.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new schedule based on this one");?>">
<aid="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">
<aid="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected virtual IPs before this entry");?>"class="act_move btn btn-default btn-xs">
<ahref="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");?>">
<spanclass="glyphiconglyphicon-removetext-muted" data-toggle="tooltip" data-placement="left" title="<?=gettext("This gateway is inactive because interface is missing");?>"></span>
<spanclass="glyphiconglyphicon-removetext-muted" data-toggle="tooltip" data-placement="left" title="<?=gettext("Gateway is inactive because interface is missing");?>"></span>
<?php
elseif(is_numeric($gateway['attribute'])):?>
<ahref="#"class="act_toggle" data-id="<?=$i;?>" data-toggle="tooltip" data-placement="left" title="<?=gettext("click to toggle enabled/disabled status");?>" >
<adata-id="<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<adata-id="<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected routes before this route");?>"class="act_move btn btn-default btn-xs">