Commit b668fdeb authored by Ad Schellevis's avatar Ad Schellevis

(firewall nat rules UI) make disabled visible, fix for https://github.com/opnsense/core/issues/169

parent c5bf89ce
...@@ -259,7 +259,7 @@ $main_buttons = array( ...@@ -259,7 +259,7 @@ $main_buttons = array(
$alias_local_port_span_end = $alias_popup["dstport_end"]; $alias_local_port_span_end = $alias_popup["dstport_end"];
if (isset($natent['disabled'])) if (isset($natent['disabled']))
$textss = "<span class=\"gray\">"; $textss = "<span class=\"text-muted\">";
else else
$textss = "<span>"; $textss = "<span>";
...@@ -273,11 +273,18 @@ $main_buttons = array( ...@@ -273,11 +273,18 @@ $main_buttons = array(
<td class="listt"><input type="checkbox" id="frc<?=$nnats;?>" name="rule[]" value="<?=$i;?>" style="margin: 0; padding: 0; width: 15px; height: 15px;" /></td> <td class="listt"><input type="checkbox" id="frc<?=$nnats;?>" name="rule[]" value="<?=$i;?>" style="margin: 0; padding: 0; width: 15px; height: 15px;" /></td>
<td class="listt" align="center"> <td class="listt" align="center">
<?php if($natent['associated-rule-id'] == "pass"): ?> <?php if($natent['associated-rule-id'] == "pass"): ?>
<span class="glyphicon glyphicon-play text-success"></span> <?php if(isset($natent['disabled'])):?>
<span class="glyphicon glyphicon-play text-muted"></span>
<? else: ?>
<span class="glyphicon glyphicon-play text-success"></span>
<? endif;?>
<?php elseif (!empty($natent['associated-rule-id'])): ?> <?php elseif (!empty($natent['associated-rule-id'])): ?>
<span class="glyphicon glyphicon-resize-horizontal text-success"></span> <?php if(isset($natent['disabled'])):?>
<span class="glyphicon glyphicon-resize-horizontal text-muted"></span>
<? else:?>
<span class="glyphicon glyphicon-resize-horizontal text-success"></span>
<?php endif; ?>
<?php endif; ?> <?php endif; ?>
</td> </td>
<td class="listlr" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';"> <td class="listlr" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
......
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