Make protocol selection in Firewall and QoS a combobox

closes #29
This commit is contained in:
Steven Barth 2009-01-08 21:19:11 +00:00
parent 5c018b446a
commit 3aae2b5775
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ luci.model.uci.cursor():foreach("firewall", "zone",
oface:value(section.name)
end)
proto = s:option(ListValue, "proto", translate("protocol"))
proto = s:option(Value, "proto", translate("protocol"))
proto.optional = true
proto:value("")
proto:value("tcpudp", "TCP+UDP")

View file

@ -73,7 +73,7 @@ p2p:value("gnu", "Gnutella")
p2p:value("kazaa", "Kazaa")
p2p.rmempty = true
p = s:option(ListValue, "proto", translate("protocol"))
p = s:option(Value, "proto", translate("protocol"))
p:value("", translate("all"))
p:value("tcp", "TCP")
p:value("udp", "UDP")