X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fsimpleform.htm;h=9c40f8290c1da636eda3883270deabd6f7570b3c;hb=6965f4ac2b57ef397b65cd30c9a1b7f14daea980;hp=d927660da4d8cfa4106bcf0d0379223f5800c351;hpb=cffba70b2ebff664e385f077d30cf701cab49a70;p=project%2Fluci.git diff --git a/libs/cbi/luasrc/view/cbi/simpleform.htm b/libs/cbi/luasrc/view/cbi/simpleform.htm index d927660da..9c40f8290 100644 --- a/libs/cbi/luasrc/view/cbi/simpleform.htm +++ b/libs/cbi/luasrc/view/cbi/simpleform.htm @@ -20,8 +20,8 @@ $Id$ <% end %>
-

<%=self.title%>

-
<%=self.description%>
+ <% if self.title and #self.title > 0 then %>

<%=self.title%>

<% end %> + <% if self.description and #self.description > 0 then %>
<%=self.description%>
<% end %> <% self:render_children() %>
@@ -33,17 +33,31 @@ $Id$ <%- end %> <% if not self.embedded then %>
+<%- + if type(self.hidden) == "table" then + for k, v in pairs(self.hidden) do +-%> + +<%- + end + end +%> <%- if self.flow and self.flow.skip then %> <% end %> <%- if self.submit ~= false then %> - <% end %> <%- if self.reset ~= false then %> - +<% end %> +<%- if self.cancel ~= false and self.on_cancel then %> + <% end %>