From 4988cc6b59a9445362d01064417706eae5f80b54 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 20 Dec 2011 15:09:38 +0000 Subject: applications/luci-firewall: fix wrong location of cbi templates --- .../luci-firewall/luasrc/view/cbi_addforward.htm | 90 ----------------- .../luci-firewall/luasrc/view/cbi_addrule.htm | 112 --------------------- .../luci-firewall/luasrc/view/cbi_addsnat.htm | 65 ------------ .../luasrc/view/firewall/cbi_addforward.htm | 90 +++++++++++++++++ .../luasrc/view/firewall/cbi_addrule.htm | 112 +++++++++++++++++++++ .../luasrc/view/firewall/cbi_addsnat.htm | 65 ++++++++++++ 6 files changed, 267 insertions(+), 267 deletions(-) delete mode 100644 applications/luci-firewall/luasrc/view/cbi_addforward.htm delete mode 100644 applications/luci-firewall/luasrc/view/cbi_addrule.htm delete mode 100644 applications/luci-firewall/luasrc/view/cbi_addsnat.htm create mode 100644 applications/luci-firewall/luasrc/view/firewall/cbi_addforward.htm create mode 100644 applications/luci-firewall/luasrc/view/firewall/cbi_addrule.htm create mode 100644 applications/luci-firewall/luasrc/view/firewall/cbi_addsnat.htm (limited to 'applications/luci-firewall') 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 %> +
-- cgit v1.2.3