summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/view/cbi/tsection.htm
blob: 987449406e227e2b76933cf18e0aabbdaee9c7a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
				<div class="cbi-tsection" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
					<h2><%=self.title%></h2>
					<div class="cbi-tsection-descr"><%=self.description%></div>
<% for k, v in pairs(self:ucisections()) do%>
					<fieldset class="cbi-tsection-node" id="cbi-<%=self.config%>-<%=k%>">
						<% if not self.anonymous then %><legend><%=k%></legend><% end %>
<% self:render_children(k) %>
						<% if self.addremove then %>
							<input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" />
						<% end %>
					</fieldset>
					<br />
<% end %>
<% if self.addremove then %>
				<div class="cbi-tsection-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-tsection-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ültiger Wert%></div><% end %>
				</div>
<% end %>
				</div>