From 9fa7e0e92ddae9ff68f50ad20bbdfc8a3c09135a Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 24 Mar 2008 21:50:48 +0000 Subject: * CBI: updates * UCI: fixed argument escaping --- src/ffluci/view/cbi/footer.htm | 4 +++- src/ffluci/view/cbi/header.htm | 1 + src/ffluci/view/cbi/lvalue.htm | 6 +++--- src/ffluci/view/cbi/tsection.htm | 12 ++++++++++++ src/ffluci/view/cbi/value.htm | 3 ++- 5 files changed, 21 insertions(+), 5 deletions(-) (limited to 'src/ffluci/view') diff --git a/src/ffluci/view/cbi/footer.htm b/src/ffluci/view/cbi/footer.htm index 8fc212b88b..230a17da86 100644 --- a/src/ffluci/view/cbi/footer.htm +++ b/src/ffluci/view/cbi/footer.htm @@ -1,3 +1,5 @@ - +
+ + <%+footer%> \ No newline at end of file diff --git a/src/ffluci/view/cbi/header.htm b/src/ffluci/view/cbi/header.htm index bd3607f11e..b11ed3b708 100644 --- a/src/ffluci/view/cbi/header.htm +++ b/src/ffluci/view/cbi/header.htm @@ -1,2 +1,3 @@ <%+header%>
"> + diff --git a/src/ffluci/view/cbi/lvalue.htm b/src/ffluci/view/cbi/lvalue.htm index 6a99419599..739d675c43 100644 --- a/src/ffluci/view/cbi/lvalue.htm +++ b/src/ffluci/view/cbi/lvalue.htm @@ -1,11 +1,11 @@
<%=self.title%>
- "<% if self.size then %> size="<%=self.size%>"<% end %>> <%for k, v in pairs(self.list) do%> - + selected="selected"<% end %> value="<%=k%>"><%=v%> <% end %>
-
<%=self.description%>
+
<%=self.description%>
\ No newline at end of file diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index bd19ecf59a..987449406e 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -5,7 +5,19 @@
<% if not self.anonymous then %><%=k%><% end %> <% self:render_children(k) %> + <% if self.addremove then %> + + <% end %>

+<% end %> +<% if self.addremove then %> +
+ <% if self.anonymous then %> + + <% else %> + + <% end %><% if self.err_invalid then %>
<%:cbi_invalid Fehler: Ungültiger Wert%>
<% end %> +
<% end %> diff --git a/src/ffluci/view/cbi/value.htm b/src/ffluci/view/cbi/value.htm index a898d08c1d..bbb5f5f3b5 100644 --- a/src/ffluci/view/cbi/value.htm +++ b/src/ffluci/view/cbi/value.htm @@ -1,7 +1,8 @@
<%=self.title%>
- " value="<%=(self:ucivalue() or "")%>" /> + size="<%=self.size%>" <% end %><% if self.maxlength then %>maxlength="<%=self.maxlength%>" <% end %>name="cbid.<%=self.config.."."..self.section.."."..self.option%>" value="<%=(self:ucivalue() or "")%>" />
<%=self.description%>
+ <% if self.err_invalid then %>
<%:cbi_invalid Fehler: Ungültiger Wert%>
<% end %>
\ No newline at end of file -- cgit v1.2.3