summaryrefslogtreecommitdiffhomepage
path: root/core/src/view/cbi
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/view/cbi')
-rw-r--r--core/src/view/cbi/nsection.htm3
-rw-r--r--core/src/view/cbi/tblsection.htm39
-rw-r--r--core/src/view/cbi/tsection.htm3
-rw-r--r--core/src/view/cbi/ucisection.htm7
-rw-r--r--core/src/view/cbi/valuefooter.htm8
-rw-r--r--core/src/view/cbi/valueheader.htm8
6 files changed, 53 insertions, 15 deletions
diff --git a/core/src/view/cbi/nsection.htm b/core/src/view/cbi/nsection.htm
index bbc87f185..fff597ad0 100644
--- a/core/src/view/cbi/nsection.htm
+++ b/core/src/view/cbi/nsection.htm
@@ -6,7 +6,10 @@ section = self.section %>
<% if self.addremove then %><div class="cbi-section-remove right">
<input type="submit" name="cbi.rns.<%=self.config%>.<%=section%>" value="<%:cbi_del Eintrag entfernen%>" />
</div><% end %>
+<div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
<%+cbi/ucisection%>
+</div>
+<br />
</div>
<% elseif self.addremove then %>
<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>">
diff --git a/core/src/view/cbi/tblsection.htm b/core/src/view/cbi/tblsection.htm
new file mode 100644
index 000000000..df16efbed
--- /dev/null
+++ b/core/src/view/cbi/tblsection.htm
@@ -0,0 +1,39 @@
+ <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
+ <h2><%=self.title%></h2>
+ <div class="cbi-section-descr"><%=self.description%></div>
+ <div class="cbi-section-node">
+ <div class="cbi-section-row">
+<% for i, k in pairs(self.children) do %>
+ <div class="cbi-section-row-head"><%=k.title%></div>
+<% end %>
+ </div>
+ <div class="cbi-section-row">
+<% for i, k in pairs(self.children) do %>
+ <div class="cbi-section-row-descr"><%=k.description%></div>
+<% end %>
+ </div>
+<% for i, k in ipairs(self:cfgsections()) do%>
+ <% if not self.anonymous then %><h3 class="table-cell"><%=k%></h3><% end %>
+<%
+section = k
+scope = {valueheader = "cbi/tiny_valueheader", valuefooter = "cbi/tiny_valuefooter"}
+%>
+<div class="cbi-section-row" id="cbi-<%=self.config%>-<%=section%>">
+<%+cbi/ucisection%>
+ <% if self.addremove then %><div class="cbi-section-remove table-cell">
+ <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="X" />
+ </div><% end %>
+</div>
+<% end %>
+<% if self.addremove then %>
+ <div class="cbi-section-create">
+ <% if self.anonymous then %>
+ <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" />
+ <% else %>
+ <input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
+ <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" />
+ <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %>
+ </div>
+ </div>
+<% end %>
+ </div>
diff --git a/core/src/view/cbi/tsection.htm b/core/src/view/cbi/tsection.htm
index 666c14b2e..37b18b5d4 100644
--- a/core/src/view/cbi/tsection.htm
+++ b/core/src/view/cbi/tsection.htm
@@ -7,7 +7,10 @@
</div><% end %>
<% if not self.anonymous then %><h3><%=k%></h3><% end %>
<% section = k %>
+<div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
<%+cbi/ucisection%>
+</div>
+<br />
<% end %>
<% if self.addremove then %>
<div class="cbi-section-create">
diff --git a/core/src/view/cbi/ucisection.htm b/core/src/view/cbi/ucisection.htm
index a1fb39cf4..0abc37e7c 100644
--- a/core/src/view/cbi/ucisection.htm
+++ b/core/src/view/cbi/ucisection.htm
@@ -1,5 +1,4 @@
- <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
-<% self:render_children(section) %>
+<% self:render_children(section, scope or {}) %>
<% if #self.optionals[section] > 0 or self.dynamic then %>
<div class="cbi-optionals">
<% if self.dynamic then %>
@@ -18,6 +17,4 @@
<% end %>
<input type="submit" value="<%:add hinzufügen%>" />
</div>
- <% end %>
- </div>
- <br /> \ No newline at end of file
+ <% end %> \ No newline at end of file
diff --git a/core/src/view/cbi/valuefooter.htm b/core/src/view/cbi/valuefooter.htm
index 99de567e0..bc9d1b127 100644
--- a/core/src/view/cbi/valuefooter.htm
+++ b/core/src/view/cbi/valuefooter.htm
@@ -1,7 +1,5 @@
-<%
-if self.tiny then
- include("cbi/tiny_valuefooter")
+<% if valuefooter then
+ include(valuefooter)
else
include("cbi/full_valuefooter")
-end
-%> \ No newline at end of file
+end %> \ No newline at end of file
diff --git a/core/src/view/cbi/valueheader.htm b/core/src/view/cbi/valueheader.htm
index 3b7dd5b82..8d9802f57 100644
--- a/core/src/view/cbi/valueheader.htm
+++ b/core/src/view/cbi/valueheader.htm
@@ -1,7 +1,5 @@
-<%
-if self.tiny then
- include("cbi/tiny_valueheader")
+<% if valueheader then
+ include(valueheader)
else
include("cbi/full_valueheader")
-end
-%> \ No newline at end of file
+end %> \ No newline at end of file