7 callHostHints: rpc.declare({
9 method: 'getHostHints',
14 return this.callHostHints();
17 render: function(hosts) {
20 m = new form.Map('dhcp', _('Hostnames'));
22 s = m.section(form.GridSection, 'domain', _('Host entries'));
27 o = s.option(form.Value, 'name', _('Hostname'));
28 o.datatype = 'hostname';
31 o = s.option(form.Value, 'ip', _('IP address'));
32 o.datatype = 'ipaddr';
34 L.sortedKeys(hosts, 'ipv4', 'addr').forEach(function(mac) {
35 o.value(hosts[mac].ipv4, '%s (%s)'.format(
37 hosts[mac].name || mac