9f0686404cc9dca4942916ad016ea3315b944c8b
[project/luci.git] / applications / luci-diag-devinfo / luasrc / model / cbi / luci_diag / netdiscover_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 require("luci.controller.luci_diag.devinfo_common")
16
17 m = Map("luci_devinfo", translate("l_d_d_ndc_netdiscover_to_devinfo_config_mini"), translate("l_d_d_ndc_mini_netdiscover_to_devinfo_config_descr"))
18
19 s = m:section(SimpleSection, "", translate("l_d_d_ndc_mini_use_config"))
20 b = s:option(DummyValue, "_scans", translate("l_d_d_ndc_mini_do_scans"))
21 b.value = ""
22 b.titleref = luci.dispatcher.build_url("mini", "diag", "netdiscover_devinfo")
23
24 scannet = m:section(TypedSection, "netdiscover_scannet", translate("l_d_d_ndc_mini_netdiscover_scannet"), translate("l_d_d_ndc_mini_netdiscover_scannet_descr"))
25 scannet.addremove = true
26 scannet.anonymous = false
27
28 luci.controller.luci_diag.devinfo_common.config_devinfo_scan(m, scannet)
29
30 return m