| 334 | | s4 = m:section(TypedSection, "dnssl", translate("DNSSL")) |
| 335 | | s4.template = "cbi/tblsection" |
| 336 | | s4.extedit = luci.dispatcher.build_url("admin/network/radvd/dnssl/%s") |
| 337 | | s4.addremove = true |
| 338 | | s4.anonymous = true |
| 339 | | |
| 340 | | function s.create(...) |
| 341 | | local id = TypedSection.create(...) |
| 342 | | luci.http.redirect(s4.extedit % id) |
| 343 | | end |
| 344 | | |
| 345 | | |
| 346 | | o = s4:option(Flag, "ignore", translate("Enable")) |
| 347 | | o.rmempty = false |
| 348 | | o.width = "30px" |
| 349 | | function o.cfgvalue(...) |
| 350 | | local v = Flag.cfgvalue(...) |
| 351 | | return v == "1" and "0" or "1" |
| 352 | | end |
| 353 | | function o.write(self, section, value) |
| 354 | | Flag.write(self, section, value == "1" and "0" or "1") |
| 355 | | end |
| 356 | | |
| 357 | | o = s4:option(DummyValue, "interface", translate("Interface")) |
| 358 | | o.template = "cbi/network_netinfo" |
| 359 | | o.width = "10%" |
| 360 | | |
| 361 | | o = s4:option(DummyValue, "suffix", translate("Suffix")) |
| | 334 | s5 = m:section(TypedSection, "dnssl", translate("DNSSL")) |
| | 335 | s5.template = "cbi/tblsection" |
| | 336 | s5.extedit = luci.dispatcher.build_url("admin/network/radvd/dnssl/%s") |
| | 337 | s5.addremove = true |
| | 338 | s5.anonymous = true |
| | 339 | |
| | 340 | function s5.create(...) |
| | 341 | local id = TypedSection.create(...) |
| | 342 | luci.http.redirect(s5.extedit % id) |
| | 343 | end |
| | 344 | |
| | 345 | |
| | 346 | o = s5:option(Flag, "ignore", translate("Enable")) |
| | 347 | o.rmempty = false |
| | 348 | o.width = "30px" |
| | 349 | function o.cfgvalue(...) |
| | 350 | local v = Flag.cfgvalue(...) |
| | 351 | return v == "1" and "0" or "1" |
| | 352 | end |
| | 353 | function o.write(self, section, value) |
| | 354 | Flag.write(self, section, value == "1" and "0" or "1") |
| | 355 | end |
| | 356 | |
| | 357 | o = s5:option(DummyValue, "interface", translate("Interface")) |
| | 358 | o.template = "cbi/network_netinfo" |
| | 359 | o.width = "10%" |
| | 360 | |
| | 361 | o = s5:option(DummyValue, "suffix", translate("Suffix")) |