From 077db659bbcb7cee6bbc4c4dbaed9776261190a0 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 27 Mar 2008 23:14:01 +0000 Subject: * Major CBI improvements --- src/ffluci/view/cbi/footer.htm | 1 + src/ffluci/view/cbi/fvalue.htm | 17 +++++++++-------- src/ffluci/view/cbi/header.htm | 1 + src/ffluci/view/cbi/lvalue.htm | 13 ++++++++----- src/ffluci/view/cbi/mvalue.htm | 15 ++++++++------- src/ffluci/view/cbi/nsection.htm | 15 +++++++++------ src/ffluci/view/cbi/tsection.htm | 19 +++++++++++-------- src/ffluci/view/cbi/value.htm | 13 ++++++++----- 8 files changed, 55 insertions(+), 39 deletions(-) (limited to 'src/ffluci/view') diff --git a/src/ffluci/view/cbi/footer.htm b/src/ffluci/view/cbi/footer.htm index d6e49678eb..0629bd6d60 100644 --- a/src/ffluci/view/cbi/footer.htm +++ b/src/ffluci/view/cbi/footer.htm @@ -1,4 +1,5 @@ + <%+footer%> \ No newline at end of file diff --git a/src/ffluci/view/cbi/fvalue.htm b/src/ffluci/view/cbi/fvalue.htm index 6cf9a8d87c..cce116af33 100644 --- a/src/ffluci/view/cbi/fvalue.htm +++ b/src/ffluci/view/cbi/fvalue.htm @@ -1,10 +1,11 @@ -
-
-
<%=self.title%>
-
<%=self.description%>
-
+
"> +
<%=self.title%>
- "<% if self:cfgvalue(section) == self.enabled then %> checked="checked"<% end %> value="1" /> + " name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self:cfgvalue(section) == self.enabled then %> checked="checked"<% end %> value="1" /> +
<%=self.description%>
-
-
\ No newline at end of file +
+ <% if #self.deps > 0 then %><% end %> \ No newline at end of file diff --git a/src/ffluci/view/cbi/header.htm b/src/ffluci/view/cbi/header.htm index 2731b6c2f5..e926b20916 100644 --- a/src/ffluci/view/cbi/header.htm +++ b/src/ffluci/view/cbi/header.htm @@ -1,4 +1,5 @@ <%+header%>
"> + diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm index f2a5ff9750..943a18886a 100644 --- a/src/ffluci/view/cbi/lvalue.htm +++ b/src/ffluci/view/cbi/lvalue.htm @@ -1,9 +1,8 @@ -
+
">
<%=self.title%>
-
<%=self.description%>
<% if self.widget == "select" then %> - " name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self.size then %> size="<%=self.size%>"<% end %>> <%for i, key in pairs(self.keylist) do%> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%> <% end %> @@ -16,6 +15,10 @@ <% if c == self.size then c = 0 %>
<% end end %> <% end %> +
<%=self.description%>
-
-
\ No newline at end of file +
+ <% if #self.deps > 0 then %><% end %> \ No newline at end of file diff --git a/src/ffluci/view/cbi/mvalue.htm b/src/ffluci/view/cbi/mvalue.htm index de7bd0c61d..7becb4f48b 100644 --- a/src/ffluci/view/cbi/mvalue.htm +++ b/src/ffluci/view/cbi/mvalue.htm @@ -1,11 +1,8 @@ <% local v = self:valuelist(section) %> -
-
-
<%=self.title%>
-
<%=self.description%>
-
+
"> +
<%=self.title%>
<% if self.widget == "select" then %> +
<% end %>
<% self:render_children(self.section) %> <% if #self.optionals[self.section] > 0 or self.dynamic then %>
+ <% if self.dynamic then %> <% else %> <% end %> -
<% end %> -
- <% if self.addremove then %> - - <% end %>
<% elseif self.addremove then %> diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 9205095313..15272f05f6 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -2,8 +2,11 @@

<%=self.title%>

<%=self.description%>
<% for k, v in pairs(self:cfgsections()) do%> -
+ <% if self.addremove then %>
+ +
<% end %> <% if not self.anonymous then %>

<%=k%>

<% end %> +
<% self:render_children(k) %> <% if #self.optionals[k] > 0 or self.dynamic then %>
@@ -11,19 +14,19 @@ <% else %> <% end %> - +
<% end %> -
- <% if self.addremove then %> - - <% end %>

<% end %> diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm index ae4cd0eb59..d027bb4489 100644 --- a/src/ffluci/view/cbi/value.htm +++ b/src/ffluci/view/cbi/value.htm @@ -1,9 +1,12 @@ -
+
">
<%=self.title%>
-
<%=self.description%>
- size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..section.."."..self.option%>" value="<%=(self:cfgvalue(section) or "")%>" /> + size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..section.."."..self.option%>" value="<%=(self:cfgvalue(section) or "")%>" /> +
<%=self.description%>
-
<% if self.tag_invalid[section] then %>
<%:cbi_invalid Fehler: Ungültige Eingabe%>
<% end %> -
\ No newline at end of file +
+ <% if #self.deps > 0 then %><% end %> -- cgit v1.2.3