summaryrefslogtreecommitdiffhomepage
path: root/web/src/view/cbi/tsection.htm
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-27 08:14:24 +0000
committerSteven Barth <steven@midlink.org>2008-05-27 08:14:24 +0000
commitb8124f18f88fe11158eb122a1e362cfbd512cf4f (patch)
tree2d7e9044ddb656c83de73415240c4ded59622389 /web/src/view/cbi/tsection.htm
parentd4399bf6189977336a94795f25986fb89a22a5e7 (diff)
* Separated the MVC-Webframework from core
* Separated i18n from core to prepare translations
Diffstat (limited to 'web/src/view/cbi/tsection.htm')
-rw-r--r--web/src/view/cbi/tsection.htm25
1 files changed, 25 insertions, 0 deletions
diff --git a/web/src/view/cbi/tsection.htm b/web/src/view/cbi/tsection.htm
new file mode 100644
index 0000000000..37b18b5d42
--- /dev/null
+++ b/web/src/view/cbi/tsection.htm
@@ -0,0 +1,25 @@
+ <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
+ <h2><%=self.title%></h2>
+ <div class="cbi-section-descr"><%=self.description%></div>
+<% for i, k in ipairs(self:cfgsections()) do%>
+ <% if self.addremove then %><div class="cbi-section-remove right">
+ <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" />
+ </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">
+ <% 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>
+<% end %>
+ </div>