Rework LuCI build system
[project/luci.git] / applications / luci-app-ltqtapi / luasrc / model / cbi / luci_ltqtapi / account.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2010 John Crispin <blogic@openwrt.org>
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 ]]--
13
14 m = Map("telephony", translate("VoIP"))
15 m.on_after_commit = function() luci.sys.call("/etc/init.d/telephony restart") end
16
17 s = m:section(TypedSection, "account", translate("Account"), translate("Here You can specify the SIP account that you want to use."))
18 s.anonymous = true
19 s.addremove = true
20
21 s:option(Value, "realm", translate("Realm"))
22 s:option(Value, "username", translate("Username"))
23 s:option(Value, "password", translate("Password"))
24 s:option(Flag, "disabled", translate("Disabled"))
25
26 return m