fix style for lua luci

This commit is contained in:
fujr 2024-11-01 01:54:46 +08:00
parent 52b5d08c86
commit d458bf17dc

View File

@ -9,10 +9,10 @@ ttl.default = 64
ttl.datatype = "uinteger" ttl.datatype = "uinteger"
o = s:option(Value, "ifname", translate("Interface")) o = s:option(Value, "ifname", translate("Interface"))
o.rmempty = ture uci:foreach("network", "interface", function(s)
o.template = "cbi/network_netlist" if s[".name"] ~= "loopback" and s[".name"] ~= "lan" then
o.widget = "optional" o:value(s[".name"])
o.nocreate = true end
o.unspecified = true end)
return m return m