diff options
-rw-r--r-- | core/src/template.lua | 2 | ||||
-rw-r--r-- | core/src/view/cbi/full_valuefooter.htm (renamed from core/src/view/cbi/valuefooter.htm) | 0 | ||||
-rw-r--r-- | core/src/view/cbi/full_valueheader.htm (renamed from core/src/view/cbi/valueheader.htm) | 0 | ||||
-rw-r--r-- | core/src/view/cbi/tiny_valuefooter.htm | 6 | ||||
-rw-r--r-- | core/src/view/cbi/tiny_valueheader.htm | 1 | ||||
-rw-r--r-- | themes/fledermaus/root/www/ffluci/media/cascade.css | 12 |
6 files changed, 20 insertions, 1 deletions
diff --git a/core/src/template.lua b/core/src/template.lua index 7ac47cbbe..134e0a6a0 100644 --- a/core/src/template.lua +++ b/core/src/template.lua @@ -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, diff --git a/core/src/view/cbi/valuefooter.htm b/core/src/view/cbi/full_valuefooter.htm index 6151a3a66..6151a3a66 100644 --- a/core/src/view/cbi/valuefooter.htm +++ b/core/src/view/cbi/full_valuefooter.htm diff --git a/core/src/view/cbi/valueheader.htm b/core/src/view/cbi/full_valueheader.htm index 062efa2dd..062efa2dd 100644 --- a/core/src/view/cbi/valueheader.htm +++ b/core/src/view/cbi/full_valueheader.htm diff --git a/core/src/view/cbi/tiny_valuefooter.htm b/core/src/view/cbi/tiny_valuefooter.htm new file mode 100644 index 000000000..e65ebb6c0 --- /dev/null +++ b/core/src/view/cbi/tiny_valuefooter.htm @@ -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 %>
\ No newline at end of file diff --git a/core/src/view/cbi/tiny_valueheader.htm b/core/src/view/cbi/tiny_valueheader.htm new file mode 100644 index 000000000..b9b26bd6a --- /dev/null +++ b/core/src/view/cbi/tiny_valueheader.htm @@ -0,0 +1 @@ + <div class="cbi-value-field" id="cbi-<%=self.config.."-"..section.."-"..self.option%>"> diff --git a/themes/fledermaus/root/www/ffluci/media/cascade.css b/themes/fledermaus/root/www/ffluci/media/cascade.css index a7245ae60..9dc24c3dd 100644 --- a/themes/fledermaus/root/www/ffluci/media/cascade.css +++ b/themes/fledermaus/root/www/ffluci/media/cascade.css @@ -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; |