6 callHostHints
: rpc
.declare({
12 return this.callHostHints();
15 render: function(hosts
) {
18 m
= new form
.Map('dhcp', _('Hostnames'));
20 s
= m
.section(form
.GridSection
, 'domain', _('Host entries'));
25 o
= s
.option(form
.Value
, 'name', _('Hostname'));
26 o
.datatype
= 'hostname';
29 o
= s
.option(form
.Value
, 'ip', _('IP address'));
30 o
.datatype
= 'ipaddr';
32 L
.sortedKeys(hosts
, 'ipv4', 'addr').forEach(function(mac
) {
33 o
.value(hosts
[mac
].ipv4
, '%s (%s)'.format(
35 hosts
[mac
].name
|| mac