2 title: L.tr('Hostnames'),
3 description: L.tr('Manage static host records to let the local DNS server resolve certain names to specific IP addresses.'),
6 var m = new L.cbi.Map('dhcp', {
7 readonly: !this.options.acls.hostnames
10 var s = m.section(L.cbi.TableSection, 'domain', {
11 caption: function(sid) { return sid ? (this.fields.name.textvalue(sid) || L.tr('Unnamed LED')) : '' },
12 teasers: [ 'sysfs', 'default', 'trigger', '_net_dev', 'mode', '_usb_dev', 'delayon', 'delayoff' ],
15 add_caption: L.tr('Add new hostname'),
16 remove_caption: L.tr('Remove hostname')
19 s.option(L.cbi.InputValue, 'name', {
20 caption: L.tr('Hostname'),
24 s.option(L.cbi.InputValue, 'ip', {
25 caption: L.tr('IP address'),
29 return m.insertInto('#map');