* luci-0.8: backport new layout for apply messages
This commit is contained in:
parent
29052f08df
commit
b9cf0e6355
4 changed files with 27 additions and 13 deletions
|
@ -16,19 +16,21 @@ $Id$
|
|||
<div class="cbi-map" id="cbi-<%=self.config%>">
|
||||
<h1><%=self.title%></h1>
|
||||
<div class="cbi-map-descr"><%=self.description%></div>
|
||||
<%- if self._apply then -%><code><%:cbi_applying%>:
|
||||
|
||||
<%
|
||||
local fp = self._apply()
|
||||
self._apply = nil
|
||||
local line = fp:read()
|
||||
while line do
|
||||
write(line.."\n")
|
||||
line = fp:read()
|
||||
end
|
||||
fp:close()
|
||||
-%>
|
||||
</code><%- end -%>
|
||||
<%- if self._apply then -%>
|
||||
<fieldset class="cbi-section">
|
||||
<legend><%:cbi_applying%></legend>
|
||||
<ul class="cbi-apply"><%-
|
||||
local fp = self._apply()
|
||||
self._apply = nil
|
||||
local line = fp:read()
|
||||
while line do
|
||||
write("<li>" .. luci.util.pcdata(line) .. "</li>\n")
|
||||
line = fp:read()
|
||||
end
|
||||
fp:close()
|
||||
-%></ul>
|
||||
</fieldset>
|
||||
<%- end -%>
|
||||
<%- self:render_children() %>
|
||||
<br />
|
||||
</div>
|
||||
|
|
|
@ -506,6 +506,10 @@ td.cbi-value-error {
|
|||
padding: 3px;
|
||||
}
|
||||
|
||||
ul.cbi-apply {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
@ -491,6 +491,10 @@ td.cbi-value-error {
|
|||
padding: 3px;
|
||||
}
|
||||
|
||||
ul.cbi-apply {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
@ -222,6 +222,10 @@ div#content ul {
|
|||
background-color: inherit;
|
||||
}
|
||||
|
||||
ul.cbi-apply {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
input[type=submit],
|
||||
input[type=reset],
|
||||
input[type=image],
|
||||
|
|
Loading…
Reference in a new issue