mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #2023 from heper/patch-3
This commit is contained in:
commit
dfd460ef56
@ -439,27 +439,17 @@ foreach ($leases as $data):
|
||||
<td><?=$data['act']?></td>
|
||||
<td>
|
||||
<? if ($data['type'] == "dynamic"): ?>
|
||||
<a class="btn btn-xs btn-primary" href="services_dhcp_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&hostname=<?=htmlspecialchars($data['hostname'])?>">
|
||||
<?=gettext("add static mapping")?>
|
||||
</a>
|
||||
<a class="fa fa-plus-square-o" title="<?=gettext("Add static mapping")?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&hostname=<?=htmlspecialchars($data['hostname'])?>"></a>
|
||||
<? else: ?>
|
||||
<a class="btn btn-xs btn-primary" href="services_dhcp_edit.php?if=<?=$data['if']?>&id=<?=$data['staticmap_array_index']?>">
|
||||
<?=gettext("edit static mapping")?>
|
||||
</a>
|
||||
<a class="fa fa-pencil" title="<?=gettext('Edit static mapping')?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&id=<?=$data['staticmap_array_index']?>"></a>
|
||||
<? endif; ?>
|
||||
<a class="btn btn-xs btn-success" href="services_wol_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&descr=<?=htmlentities($data['hostname'])?>">
|
||||
add WOL mapping
|
||||
</a>
|
||||
<a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&descr=<?=htmlentities($data['hostname'])?>"></a>
|
||||
<? if ($data['online'] != "online"):?>
|
||||
<a class="btn btn-xs btn-warning" href="services_wol.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>">
|
||||
send WOL packet
|
||||
</a>
|
||||
<a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>"></a>
|
||||
<? endif; ?>
|
||||
|
||||
<? if ($data['type'] == "dynamic" && $data['online'] != "online"):?>
|
||||
<a class="btn btn-xs btn-danger" href="status_dhcp_leases.php?deleteip=<?=$data['ip']?>&all=<?=intval($_GET['all'])?>">
|
||||
delete lease
|
||||
</a>
|
||||
<a class="fa fa-trash" title="<?=gettext('Delete lease')?>" href="status_dhcp_leases.php?deleteip=<?=$data['ip']?>&all=<?=intval($_GET['all'])?>" onclick="return confirm('<?=gettext("Are you sure you want to delete this lease?")?>')"></a>
|
||||
<? endif?>
|
||||
</td>
|
||||
<? endforeach; ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user