f68af90605e7b02f1a45b2bc830300c3755d6734
[project/luci.git] / applications / luci-diag-devinfo / luasrc / model / cbi / luci_diag / smap_devinfo_config_mini.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 (c) 2009 Daniel Dickinson
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 m = Map("luci_devinfo", translate("l_d_d_sdc_mini_smap_to_devinfo_config"), translate("l_d_d_sdc_mini_smap_to_devinfo_config_descr"))
16
17 s = m:section(SimpleSection, "", translate("l_d_d_sdc_mini_use_config"))
18 b = s:option(DummyValue, "_scans", translate("l_d_d_sdc_mini_do_scans"))
19 b.value = ""
20 b.titleref = luci.dispatcher.build_url("mini", "diag", "phone_scan")
21
22 scannet = m:section(TypedSection, "smap_scannet", translate("l_d_d_sdc_mini_smap_scannet"), translate("l_d_d_sdc_mini_smap_scannet_descr"))
23 scannet.addremove = true
24 scannet.anonymous = false
25
26 local ports
27 ports = scannet:option(Value, "ports", translate("l_d_d_sdc_mini_ports"))
28 ports.optional = true
29 ports.rmempty = true
30
31 luci.controller.luci_diag.devinfo_common.config_devinfo_scan(m, scannet)
32
33
34 return m