diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-14 01:31:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-14 01:31:17 +0000 |
commit | 8591d4e3963900082bc6468fe37eb08ce930faec (patch) | |
tree | ff9345d0856f585463e076d8ce17e69b8d01873a /libs | |
parent | 027effe9c839aeaa066eb11df33a5c8c4441f79f (diff) |
* luci/libs: improved cbi templates
* luci/modules: fix layout of sshkeys page in admin-full
Diffstat (limited to 'libs')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/nsection.htm | 4 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/tblsection.htm | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libs/cbi/luasrc/view/cbi/nsection.htm b/libs/cbi/luasrc/view/cbi/nsection.htm index 27db4bfbfb..156137eeba 100644 --- a/libs/cbi/luasrc/view/cbi/nsection.htm +++ b/libs/cbi/luasrc/view/cbi/nsection.htm @@ -18,7 +18,9 @@ $Id$ <% if self.title and #self.title > 0 then -%> <legend><%=self.title%></legend> <%- end %> - <div class="cbi-section-descr"><%=self.description%></div> + <% if self.description and #self.description > 0 then -%> + <div class="cbi-section-descr"><%=self.description%></div> + <%- end %> <% if self.addremove then -%> <div class="cbi-section-remove right"> <input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del%>" /> diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index d4effef493..7bb31caa1d 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -21,8 +21,8 @@ end -%> <!-- tblsection --> -<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>"> - <h2><%=self.title%></h2> +<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>"> + <legend><%=self.title%></legend> <div class="cbi-section-descr"><%=self.description%></div> <div class="cbi-section-node"> <%- local count = 0 -%> @@ -104,5 +104,5 @@ end </div> <%- end -%> </div> -</div> +</fieldset> <!-- /tblsection --> |