luci-app-openvpn-server: code alignment

This commit is contained in:
Beginner-Go 2022-06-09 18:36:06 +00:00
parent 6ea63a0560
commit bcc38244ea
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ function index()
if not nixio.fs.access("/etc/config/openvpn") then
return
end
entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false
entry({"admin", "vpn", "openvpn-server"}, alias("admin", "vpn", "openvpn-server", "basic"), _("OpenVPN Server"), 80).dependent = true
entry({"admin", "vpn", "openvpn-server", "basic"}, cbi("openvpn-server/basic"), _("Base Setting"), 1).leaf = true

View File

@ -2,7 +2,7 @@ mp = Map("openvpn")
mp.title = translate("OpenVPN Server")
mp.description = translate("An easy config OpenVPN Server Web-UI")
mp:section(SimpleSection).template = "openvpn-server/openvpn-server_status"
mp:section(SimpleSection).template = "openvpn-server/openvpn-server_status"
s = mp:section(TypedSection, "openvpn")
s.anonymous = true
@ -25,13 +25,13 @@ ddns.default = "exmple.com"
ddns.rmempty = false
localnet = s:option(Value, "server", translate("Client Network"))
localnet.datatype = "string"
localnet.description = translate("VPN Client Network IP with subnet")
localnet.datatype = "string"
list = s:option(DynamicList, "push")
list.title = translate("Client Settings")
list.datatype = "string"
list.description = translate("Set route 192.168.0.0 255.255.255.0 and dhcp-option DNS 192.168.0.1 base on your router")
list.datatype = "string"
o = s:option(Button, "certificate", translate("OpenVPN Client config file"))
o.inputtitle = translate("Download .ovpn file")