ln.skyspot/www/dhcp/DHCPLeases.html

35 lines
1.1 KiB
HTML

<%frame "frame.html"%>
<h2>Leases</h2>
<div>
<table id="DHCPLeases"></table>
</div>
<script type="text/javascript">
$("#DHCPLeases").DataTable({
columns: [
{ title: "Client MAC", data: "ClientMAC.Bytes", render: function(d,t,r){ return DecodeMAC(d); } },
{ title: "Client IP", data: "ClientIP" },
{ title: "Client Name", data: "ClientName" },
{ title: "Server Interface", data: "ServerInterface", render: function(d,t,r){ return `<a href="javascript:editDHCPServerInterface('${d}');">${d}</a>`; } },
{ title: "Status", data: "LeaseState" },
{ title: "Erstellt", data: "Created" },
{ title: "Gültig bis", data: "ValidThrough" },
{ title: "Letzte Änderung", data: "LastUpdate" },
{ title: "Freigegeben", data: "Released" },
],
columnDefs: [
],
select: "single",
ajax: {
url: "/DHCP/collections/DHCPLease",
dataSrc: ''
},
serverSide: false,
})
</script>