* luci/libs/cbi: better layout for apply output

* luci/themes: introduce new css class for apply ul
This commit is contained in:
Jo-Philipp Wich 2008-09-08 16:51:50 +00:00
parent 9890c99d0b
commit 8d372d2f28
4 changed files with 27 additions and 13 deletions

View file

@ -16,19 +16,21 @@ $Id$
<div class="cbi-map" id="cbi-<%=self.config%>"> <div class="cbi-map" id="cbi-<%=self.config%>">
<h1><%=self.title%></h1> <h1><%=self.title%></h1>
<div class="cbi-map-descr"><%=self.description%></div> <div class="cbi-map-descr"><%=self.description%></div>
<%- if self._apply then -%><code><%:cbi_applying%>: <%- if self._apply then -%>
<fieldset class="cbi-section">
<% <legend><%:cbi_applying%></legend>
<ul class="cbi-apply"><%-
local fp = self._apply() local fp = self._apply()
self._apply = nil self._apply = nil
local line = fp:read() local line = fp:read()
while line do while line do
write(line.."\n") write("<li>" .. luci.util.pcdata(line) .. "</li>\n")
line = fp:read() line = fp:read()
end end
fp:close() fp:close()
-%> -%></ul>
</code><%- end -%> </fieldset>
<%- end -%>
<%- self:render_children() %> <%- self:render_children() %>
<br /> <br />
</div> </div>

View file

@ -507,6 +507,10 @@ td.cbi-value-error {
padding: 3px; padding: 3px;
} }
ul.cbi-apply {
font-size: 90%;
}
.right { .right {
text-align: right; text-align: right;
} }

View file

@ -492,6 +492,10 @@ td.cbi-value-error {
padding: 3px; padding: 3px;
} }
ul.cbi-apply {
font-size: 90%;
}
.right { .right {
text-align: right; text-align: right;
} }

View file

@ -222,6 +222,10 @@ div#content ul {
background-color: inherit; background-color: inherit;
} }
ul.cbi-apply {
font-size: 90%;
}
input[type=submit], input[type=submit],
input[type=reset], input[type=reset],
input[type=image], input[type=image],