From 07fdaa87dbac0582960cded4e9aa981d4a141782 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 13 Aug 2008 01:24:44 +0000 Subject: modules/admin-full: Network interface configuration optimization part #1 --- libs/cbi/htdocs/luci-static/resources/cbi/edit.gif | Bin 0 -> 280 bytes .../htdocs/luci-static/resources/cbi/remove.gif | Bin 0 -> 385 bytes libs/cbi/luasrc/view/cbi/editlink.htm | 18 ---------- libs/cbi/luasrc/view/cbi/tblsection.htm | 38 +++++++++++++++------ 4 files changed, 27 insertions(+), 29 deletions(-) create mode 100644 libs/cbi/htdocs/luci-static/resources/cbi/edit.gif create mode 100644 libs/cbi/htdocs/luci-static/resources/cbi/remove.gif delete mode 100644 libs/cbi/luasrc/view/cbi/editlink.htm (limited to 'libs/cbi') diff --git a/libs/cbi/htdocs/luci-static/resources/cbi/edit.gif b/libs/cbi/htdocs/luci-static/resources/cbi/edit.gif new file mode 100644 index 0000000000..7b02b6e72a Binary files /dev/null and b/libs/cbi/htdocs/luci-static/resources/cbi/edit.gif differ diff --git a/libs/cbi/htdocs/luci-static/resources/cbi/remove.gif b/libs/cbi/htdocs/luci-static/resources/cbi/remove.gif new file mode 100644 index 0000000000..bf43a0a0bc Binary files /dev/null and b/libs/cbi/htdocs/luci-static/resources/cbi/remove.gif differ diff --git a/libs/cbi/luasrc/view/cbi/editlink.htm b/libs/cbi/luasrc/view/cbi/editlink.htm deleted file mode 100644 index 83260e437a..0000000000 --- a/libs/cbi/luasrc/view/cbi/editlink.htm +++ /dev/null @@ -1,18 +0,0 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - -<%+cbi/valueheader%> -<%:edit%> -<%+cbi/valuefooter%> diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index acaf6693ef..46f7e5115d 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -21,36 +21,52 @@ $Id$ <%- local count = 0 -%> + <%- if not self.anonymous then -%> + + <%- end -%> <%- for i, k in pairs(self.children) do -%> + <%- count = count + 1; end; if self.extedit then -%> + <%- count = count + 1; end; if self.addremove then -%> <%- count = count + 1; end -%> + <%- if not self.anonymous then -%> + + <%- end -%> <%- for i, k in pairs(self.children) do -%> + <%- end; if self.extedit then -%> + <%- end; if self.addremove then -%> <%- end -%> <%- local isempty = true for i, k in ipairs(self:cfgsections()) do - if not self.anonymous then - -%> - - - - <%- end section = k isempty = false scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> + <% if not self.anonymous then -%> + + <%- end %> <%-+cbi/ucisection-%> + <%- if self.extedit or self.addremove then -%> + + <%- end -%> <%- if self.addremove then -%> <%- end -%> @@ -61,9 +77,10 @@ $Id$ <%- end -%> - +
 <%=k.title%>  
 <%=k.description%>  

<%=k%>

<%=k%>

+ <%- if self.extedit then -%> + <%:edit%> + <%- end; if self.addremove then %> + + <%- end -%> + - +

<%:cbi_sectempty%>
<%- if self.addremove then -%> - +
+
<% if self.anonymous then %> @@ -78,9 +95,8 @@ $Id$ <% end %>
- +
<%- end -%> - -- cgit v1.2.3