summaryrefslogtreecommitdiffhomepage
path: root/core/src/view/cbi/ucisection.htm
blob: a1fb39cf45f00508e60560fdceb19a7e80439d05 (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-section-node" id="cbi-<%=self.config%>-<%=section%>">
<% self:render_children(section) %>
						<% if #self.optionals[section] > 0 or self.dynamic then %>
							<div class="cbi-optionals">
							<% if self.dynamic then %>
								<input type="text" name="cbi.opt.<%=self.config%>.<%=section%>" />
							<% else %>
								<select name="cbi.opt.<%=self.config%>.<%=section%>">
									<option><%:cbi_addopt -- Feld --%></option>
								<% for key, val in pairs(self.optionals[section]) do %>
									<option id="cbi-<%=self.config.."-"..section.."-"..val.option%>" value="<%=val.option%>"><%=val.title%></option>
								<% end %>
								</select>
								<script type="text/javascript"><% for key, val in pairs(self.optionals[section]) do %>
									<% if #val.deps > 0 then %><% for j, d in ipairs(val.deps) do %>cbi_d_add("cbi-<%=self.config.."-"..section.."-"..val.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>");
								<% end %><% end %>
								<% end %></script>
							<% end %>
								<input type="submit" value="<%:add hinzufügen%>" />
							</div>
						<% end %>
					</div>
					<br />