From b34c9ae639493fc09988718695de6d0fa2f42b52 Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Fri, 16 Jan 2015 15:37:13 -0200 Subject: luci-proto-3g: add dialnumber option UCI network already permit dialnumber option for 3g interfaces. This adds dialnumber to luci protocol 3g. Also it introduces a new translation string "Dial number", added to template and updated on each language (all empty but pt-br). Signed-off-by: Luiz Angelo Daros de Luca --- protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/luci-proto-3g') diff --git a/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua b/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua index 9c1a762827..5a73396bed 100644 --- a/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua +++ b/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua @@ -12,7 +12,7 @@ You may obtain a copy of the License at local map, section, net = ... -local device, apn, service, pincode, username, password +local device, apn, service, pincode, username, password, dialnumber local ipv6, maxwait, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand @@ -51,6 +51,8 @@ username = section:taboption("general", Value, "username", translate("PAP/CHAP u password = section:taboption("general", Value, "password", translate("PAP/CHAP password")) password.password = true +dialnumber = section:taboption("general", Value, "dialnumber", translate("Dial number")) +dialnumber.placeholder = "*99***1#" if luci.model.network:has_ipv6() then -- cgit v1.2.3