applications/luci-radvd: expose ignore option, assign column widths
[project/luci.git] / applications / luci-radvd / luasrc / model / cbi / radvd / prefix.lua
index 460a244d03acab9ecd9338abcc4015e5d1ca1fa0..d3567cb0e81f621048267933ce4fb493433bd42c 100644 (file)
@@ -38,6 +38,19 @@ s:tab("advanced",  translate("Advanced"))
 -- General
 --
 
+o = s:taboption("general", Flag, "ignore", translate("Enable"))
+o.rmempty = false
+
+function o.cfgvalue(...)
+       local v = Flag.cfgvalue(...)
+       return v == "1" and "0" or "1"
+end
+
+function o.write(self, section, value)
+       Flag.write(self, section, value == "1" and "0" or "1")
+end
+
+
 o = s:taboption("general", Value, "interface", translate("Interface"),
        translate("Specifies the logical interface name this section belongs to"))