summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_rfc2136.php
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2013-02-02 14:29:30 +0100
committerbcyrill <cyrill@bannwart.info>2013-02-02 14:29:30 +0100
commite5da6830ae8d060c094b1994a0f6138fc1edfac1 (patch)
tree03050f9866d7b31e5e446243ffe2636a7b12fbc7 /usr/local/www/services_rfc2136.php
parente766bd84c3c2cbb87c1a84e826cf7eb49560861b (diff)
downloadpfsense-e5da6830ae8d060c094b1994a0f6138fc1edfac1.zip
pfsense-e5da6830ae8d060c094b1994a0f6138fc1edfac1.tar.gz
Gray-out disabled RFC2136 entries
Diffstat (limited to 'usr/local/www/services_rfc2136.php')
-rw-r--r--usr/local/www/services_rfc2136.php21
1 files changed, 17 insertions, 4 deletions
diff --git a/usr/local/www/services_rfc2136.php b/usr/local/www/services_rfc2136.php
index efb1e11..3763182 100644
--- a/usr/local/www/services_rfc2136.php
+++ b/usr/local/www/services_rfc2136.php
@@ -88,21 +88,34 @@ include("head.inc");
$iflist = get_configured_interface_with_descr();
foreach ($iflist as $if => $ifdesc) {
if ($rfc2136['interface'] == $if) {
- echo $ifdesc;
+ if (!isset($rfc2136['enable']))
+ echo "<span class=\"gray\">{$ifdesc}</span>";
+ else
+ echo "{$ifdesc}";
break;
}
}
?>
</td>
<td class="listr">
- <?=htmlspecialchars($rfc2136['host']);?>
+ <?php
+ if (!isset($rfc2136['enable']))
+ echo "<span class=\"gray\">".htmlspecialchars($rfc2136['host'])."</span>";
+ else
+ echo htmlspecialchars($rfc2136['host']);
+ ?>
</td>
<td class="listbg">
- <?=htmlspecialchars($rfc2136['descr']);?>&nbsp;
+ <?php
+ if (!isset($rfc2136['enable']))
+ echo "<span class=\"gray\">".htmlspecialchars($rfc2136['descr'])."</span>";
+ else
+ echo htmlspecialchars($rfc2136['descr']);
+ ?>
</td>
<td valign="middle" nowrap class="list">
<a href="services_rfc2136_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a>
- &nbsp;<a href="services_rfc2136.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a>
+ &nbsp;<a href="services_rfc2136.php?act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a>
</td>
</tr>
<?php $i++; endforeach; ?>
OpenPOWER on IntegriCloud