summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-11 19:26:41 +0545
committerPhil Davis <phil.davis@inf.org>2017-01-11 19:26:41 +0545
commit6e3e95a538c4dda9c9f14b2ab78435eec0debf46 (patch)
tree6c55adb715d76140ad7434389a00855d62b9ecd2 /src/usr/local/www/services_dhcp.php
parent7cdb1ff98361bd352134d78732fb519957803728 (diff)
downloadpfsense-6e3e95a538c4dda9c9f14b2ab78435eec0debf46.zip
pfsense-6e3e95a538c4dda9c9f14b2ab78435eec0debf46.tar.gz
Display client id in DHCP Mapping list
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index ddb2420..b62cd5d 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -1371,6 +1371,17 @@ print($form);
// DHCP Static Mappings table
if (!is_numeric($pool) && !($act == "newpool")) {
+
+ // Decide whether display of the Client Id column is needed.
+ $got_cid = false;
+ if (is_array($a_maps)) {
+ foreach ($a_maps as $map) {
+ if (!empty($map['cid'])) {
+ $got_cid = true;
+ break;
+ }
+ }
+ }
?>
<div class="panel panel-default">
@@ -1381,6 +1392,13 @@ if (!is_numeric($pool) && !($act == "newpool")) {
<tr>
<th><?=gettext("Static ARP")?></th>
<th><?=gettext("MAC address")?></th>
+<?php
+ if ($got_cid):
+?>
+ <th><?=gettext("Client Id")?></th>
+<?php
+ endif;
+?>
<th><?=gettext("IP address")?></th>
<th><?=gettext("Hostname")?></th>
<th><?=gettext("Description")?></th>
@@ -1404,6 +1422,15 @@ if (!is_numeric($pool) && !($act == "newpool")) {
<td ondblclick="document.location='services_dhcp_edit.php?if=<?=htmlspecialchars($if)?>&amp;id=<?=$i?>';">
<?=htmlspecialchars($mapent['mac'])?>
</td>
+<?php
+ if ($got_cid):
+?>
+ <td ondblclick="document.location='services_dhcp_edit.php?if=<?=htmlspecialchars($if)?>&amp;id=<?=$i?>';">
+ <?=htmlspecialchars($mapent['cid'])?>
+ </td>
+<?php
+ endif;
+?>
<td ondblclick="document.location='services_dhcp_edit.php?if=<?=htmlspecialchars($if)?>&amp;id=<?=$i?>';">
<?=htmlspecialchars($mapent['ipaddr'])?>
</td>
OpenPOWER on IntegriCloud