* CBI: Minor changes
This commit is contained in:
parent
bac04441f1
commit
178da94019
6 changed files with 20 additions and 1 deletions
|
@ -52,7 +52,7 @@ compiler_enable_bytecode = false
|
|||
viewns = {
|
||||
translate = function(...) return require("ffluci.i18n").translate(...) end,
|
||||
config = function(...) return require("ffluci.model.uci").get(...) or "" end,
|
||||
controller = ffluci.http.env.SCRIPT_NAME,
|
||||
controller = ffluci.http.env.SCRIPT_NAME or "",
|
||||
media = ffluci.config.main.mediaurlbase,
|
||||
write = io.write,
|
||||
include = function(name) Template(name):render(getfenv(2)) end,
|
||||
|
|
6
core/src/view/cbi/tiny_valuefooter.htm
Normal file
6
core/src/view/cbi/tiny_valuefooter.htm
Normal file
|
@ -0,0 +1,6 @@
|
|||
<% if self.tag_invalid[section] then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %>
|
||||
</div>
|
||||
<% if #self.deps > 0 then %><script type="text/javascript">
|
||||
<% for j, d in ipairs(self.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>");
|
||||
<% end %>
|
||||
</script><% end %>
|
1
core/src/view/cbi/tiny_valueheader.htm
Normal file
1
core/src/view/cbi/tiny_valueheader.htm
Normal file
|
@ -0,0 +1 @@
|
|||
<div class="cbi-value-field" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
|
|
@ -165,6 +165,18 @@ h3 {
|
|||
display: inline;
|
||||
}
|
||||
|
||||
.table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.table-cell {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.table-row {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.code {
|
||||
background: #f7f7f7;
|
||||
border: 1px solid #d7d7d7;
|
||||
|
|
Loading…
Reference in a new issue