From: Jo-Philipp Wich Date: Tue, 20 Dec 2011 15:09:38 +0000 (+0000) Subject: applications/luci-firewall: fix wrong location of cbi templates X-Git-Tag: 0.11.0~1209 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4988cc6b59a9445362d01064417706eae5f80b54;p=oweals%2Fluci.git applications/luci-firewall: fix wrong location of cbi templates --- diff --git a/applications/luci-firewall/luasrc/view/cbi_addforward.htm b/applications/luci-firewall/luasrc/view/cbi_addforward.htm deleted file mode 100644 index 6a49266b7..000000000 --- a/applications/luci-firewall/luasrc/view/cbi_addforward.htm +++ /dev/null @@ -1,90 +0,0 @@ -
-
- - - - - - - - - - - - - - - - - - - - -
<%:New port forward%>:
<%:Name%><%:Protocol%><%:External port%><%:Internal IP address%><%:Internal port%>
- - - - - - - - - - - -
- - -
diff --git a/applications/luci-firewall/luasrc/view/cbi_addrule.htm b/applications/luci-firewall/luasrc/view/cbi_addrule.htm deleted file mode 100644 index 473f9f451..000000000 --- a/applications/luci-firewall/luasrc/view/cbi_addrule.htm +++ /dev/null @@ -1,112 +0,0 @@ -<% - local fw = require "luci.model.firewall".init() - local wz = fw:get_zone("wan") - local lz = fw:get_zone("lan") -%> - -
- <% if wz and lz then %> -
- - - - - - - - - - - - - - - - -
<%:Open ports on router%>:
<%:Name%><%:Protocol%><%:External port%>
- - - - - - - -
- - - - - - - - - - - - - - - - - -

<%:New forward rule%>:
<%:Name%><%:Source zone%><%:Destination zone%>
- - - - - - - -
- - - <% else %> - - <% end %> -
diff --git a/applications/luci-firewall/luasrc/view/cbi_addsnat.htm b/applications/luci-firewall/luasrc/view/cbi_addsnat.htm deleted file mode 100644 index 28bb22d40..000000000 --- a/applications/luci-firewall/luasrc/view/cbi_addsnat.htm +++ /dev/null @@ -1,65 +0,0 @@ -<% - local fw = require "luci.model.firewall".init() - local nw = require "luci.model.network".init() - local wz = fw:get_zone("wan") - local lz = fw:get_zone("lan") -%> - -
- <% if wz and lz then %> -
- - - - - - - - - - - - - - - - - - - - -
<%:New source NAT%>:
<%:Name%><%:Source zone%><%:Destination zone%><%:To source IP%><%:To source port%>
- - - - - - - - - - - -
- - - <% else %> - - <% end %> -
diff --git a/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm b/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm new file mode 100644 index 000000000..6a49266b7 --- /dev/null +++ b/applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm @@ -0,0 +1,90 @@ +
+
+ + + + + + + + + + + + + + + + + + + + +
<%:New port forward%>:
<%:Name%><%:Protocol%><%:External port%><%:Internal IP address%><%:Internal port%>
+ + + + + + + + + + + +
+ + +
diff --git a/applications/luci-firewall/luasrc/view/firewall/cbi_addrule.htm b/applications/luci-firewall/luasrc/view/firewall/cbi_addrule.htm new file mode 100644 index 000000000..473f9f451 --- /dev/null +++ b/applications/luci-firewall/luasrc/view/firewall/cbi_addrule.htm @@ -0,0 +1,112 @@ +<% + local fw = require "luci.model.firewall".init() + local wz = fw:get_zone("wan") + local lz = fw:get_zone("lan") +%> + +
+ <% if wz and lz then %> +
+ + + + + + + + + + + + + + + + +
<%:Open ports on router%>:
<%:Name%><%:Protocol%><%:External port%>
+ + + + + + + +
+ + + + + + + + + + + + + + + + + +

<%:New forward rule%>:
<%:Name%><%:Source zone%><%:Destination zone%>
+ + + + + + + +
+ + + <% else %> + + <% end %> +
diff --git a/applications/luci-firewall/luasrc/view/firewall/cbi_addsnat.htm b/applications/luci-firewall/luasrc/view/firewall/cbi_addsnat.htm new file mode 100644 index 000000000..28bb22d40 --- /dev/null +++ b/applications/luci-firewall/luasrc/view/firewall/cbi_addsnat.htm @@ -0,0 +1,65 @@ +<% + local fw = require "luci.model.firewall".init() + local nw = require "luci.model.network".init() + local wz = fw:get_zone("wan") + local lz = fw:get_zone("lan") +%> + +
+ <% if wz and lz then %> +
+ + + + + + + + + + + + + + + + + + + + +
<%:New source NAT%>:
<%:Name%><%:Source zone%><%:Destination zone%><%:To source IP%><%:To source port%>
+ + + + + + + + + + + +
+ + + <% else %> + + <% end %> +