Revision 49c9e939
Added by jeroen van breedam over 9 years ago
src/usr/local/www/status_dhcp_leases.php | ||
---|---|---|
439 | 439 |
<td><?=$data['act']?></td> |
440 | 440 |
<td> |
441 | 441 |
<? if ($data['type'] == "dynamic"): ?> |
442 |
<a class="btn btn-xs btn-primary" href="services_dhcp_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&hostname=<?=htmlspecialchars($data['hostname'])?>"> |
|
443 |
<?=gettext("add static mapping")?> |
|
444 |
</a> |
|
442 |
<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> |
|
445 | 443 |
<? else: ?> |
446 |
<a class="btn btn-xs btn-primary" href="services_dhcp_edit.php?if=<?=$data['if']?>&id=<?=$data['staticmap_array_index']?>"> |
|
447 |
<?=gettext("edit static mapping")?> |
|
448 |
</a> |
|
444 |
<a class="fa fa-pencil" title="<?=gettext('Edit static mapping')?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&id=<?=$data['staticmap_array_index']?>"></a> |
|
449 | 445 |
<? endif; ?> |
450 |
<a class="btn btn-xs btn-success" href="services_wol_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&descr=<?=htmlentities($data['hostname'])?>"> |
|
451 |
add WOL mapping |
|
452 |
</a> |
|
446 |
<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> |
|
453 | 447 |
<? if ($data['online'] != "online"):?> |
454 |
<a class="btn btn-xs btn-warning" href="services_wol.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>"> |
|
455 |
send WOL packet |
|
456 |
</a> |
|
448 |
<a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>"></a> |
|
457 | 449 |
<? endif; ?> |
458 | 450 |
|
459 | 451 |
<? if ($data['type'] == "dynamic" && $data['online'] != "online"):?> |
460 |
<a class="btn btn-xs btn-danger" href="status_dhcp_leases.php?deleteip=<?=$data['ip']?>&all=<?=intval($_GET['all'])?>"> |
|
461 |
delete lease |
|
462 |
</a> |
|
452 |
<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> |
|
463 | 453 |
<? endif?> |
464 | 454 |
</td> |
465 | 455 |
<? endforeach; ?> |
Also available in: Unified diff
convert status_dhcp_leases to fa