applications/luci-ushare: fix XML markup error in map
[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         luci.util.pcdata(translate("uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices with information on available multimedia files.")))
18
19 s = m:section(TypedSection, "ushare", translate("Settings"))
20 s.addremove = false
21 s.anonymous = true
22
23 s:option(Flag, "enabled", translate("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(DynamicList, "content_directories", translate("Content directories"))
35
36 s:option(Flag, "disable_webif", translate("Disable webinterface"))
37
38 s:option(Flag, "disable_telnet", translate("Disable telnet console"))
39
40 s:option(Value, "options", translate("Options"))
41
42 return m