* luci/applications: add ushare package
[project/luci.git] / applications / luci-ushare / luasrc / model / cbi / ushare.lua
1 --[[
2
3 LuCI uShare
4 (c) 2008 Yanira <forum-2008@email.de>
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
16 m = Map("ushare", translate("ushare"),
17 translatef("ushare_desc"))
18
19 s = m:section(TypedSection, "ushare", translate("settings"))
20 s.addremove = false
21 s.anonymous = true
22
23 s:option(Flag, "enabled", translate("enabled", "Enable"))
24
25 s:option(Value, "username", translate("username"))
26
27 s:option(Value, "servername", translate("servername"))
28
29 dif = s:option( Value, "interface", translate("interface"))
30 for _, nif in ipairs(luci.sys.net.devices()) do
31 if nif ~= "lo" then dif:value(nif) end
32 end
33
34 s:option(Value, "content_directories", translate("content_directories"))
35
36 s:option(Value, "options", translate("options"))
37
38 return m