From 36717208f1ae73290d352d706425e32f9726ff37 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 14 Aug 2008 16:11:49 +0000 Subject: Fixed login form Converted SSH-Keys to CBI-Map --- libs/cbi/luasrc/cbi.lua | 2 +- libs/cbi/luasrc/view/cbi/full_valuefooter.htm | 2 ++ libs/cbi/luasrc/view/cbi/full_valueheader.htm | 2 ++ libs/cbi/luasrc/view/cbi/simpleform.htm | 5 ++--- libs/cbi/luasrc/view/cbi/tvalue.htm | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) (limited to 'libs') diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index f7725c5348..399f486752 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -268,7 +268,7 @@ function SimpleForm.parse(self, ...) or valid and 1 or -1 - self.dorender = self:handle(state) + self.dorender = self:handle(state, self.data) end function SimpleForm.render(self, ...) diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm index 8933016d7d..a5a6046a5a 100644 --- a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm @@ -17,7 +17,9 @@ $Id$ <%:help%>
<%=self.description%>
<%- end %> + <%- if self.title and #self.title > 0 then -%> + <%- end -%> <% if self.tag_invalid[section] then -%>
<%:cbi_invalid%>
diff --git a/libs/cbi/luasrc/view/cbi/full_valueheader.htm b/libs/cbi/luasrc/view/cbi/full_valueheader.htm index 5b890ed0be..ddc256dc72 100644 --- a/libs/cbi/luasrc/view/cbi/full_valueheader.htm +++ b/libs/cbi/luasrc/view/cbi/full_valueheader.htm @@ -14,9 +14,11 @@ $Id$ -%>
"> + <%- if self.title and #self.title > 0 then -%>
+ <%- end -%> diff --git a/libs/cbi/luasrc/view/cbi/simpleform.htm b/libs/cbi/luasrc/view/cbi/simpleform.htm index 38df61b5f9..68c8cc9169 100644 --- a/libs/cbi/luasrc/view/cbi/simpleform.htm +++ b/libs/cbi/luasrc/view/cbi/simpleform.htm @@ -17,7 +17,6 @@ $Id$
-

<%=self.title%>

@@ -32,12 +31,12 @@ $Id$
<%- if self.submit ~= false then %> - <% end %> <%- if self.reset ~= false then %> - <% end %> diff --git a/libs/cbi/luasrc/view/cbi/tvalue.htm b/libs/cbi/luasrc/view/cbi/tvalue.htm index 6a1396886c..4d92545ae0 100644 --- a/libs/cbi/luasrc/view/cbi/tvalue.htm +++ b/libs/cbi/luasrc/view/cbi/tvalue.htm @@ -13,7 +13,7 @@ $Id$ -%> <%+cbi/valueheader%> - <%+cbi/valuefooter%> -- cgit v1.2.3