* CBI update
[project/luci.git] / src / ffluci / view / cbi / tsection.htm
1                                 <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
2                                         <h2><%=self.title%></h2>
3                                         <div class="cbi-section-descr"><%=self.description%></div>
4 <% for k, v in pairs(self:cfgsections()) do%>
5                                         <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=k%>">
6                                                 <% if not self.anonymous then %><h3><%=k%></h3><% end %>
7 <% self:render_children(k) %>
8                                                 <% if #self.optionals[k] > 0 or self.dynamic then %>
9                                                         <div class="cbi-optionals">
10                                                         <% if self.dynamic then %>
11                                                                 <input type="text" name="cbi.opt.<%=self.config%>.<%=k%>" />
12                                                         <% else %>
13                                                                 <select name="cbi.opt.<%=self.config%>.<%=k%>">
14                                                                         <option><%:cbi_selopt *** Zusätzliche Parameter ***%></option>
15                                                                 <% for key, val in pairs(self.optionals[k]) do %>
16                                                                         <option value="<%=val.option%>"><%=val.title%></option>
17                                                                 <% end %>
18                                                                 </select>
19                                                         <% end %>
20                                                                 <input type="submit" value="<%:cbi_addopt Feld hinzufügen%>" />
21                                                         </div>
22                                                 <% end %>
23                                                 <br />
24                                                 <% if self.addremove then %>
25                                                         <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" value="<%:cbi_del Eintrag entfernen%>" />
26                                                 <% end %>
27                                         </fieldset>
28                                         <br />
29 <% end %>
30 <% if self.addremove then %>
31                                 <div class="cbi-section-create">
32                                         <% if self.anonymous then %>
33                                         <input type="submit" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" value="<%:cbi_add Eintrag hinzufügen%>" />
34                                         <% else %><input type="text" class="cbi-section-create-name" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>" />
35                                         <input type="submit" value="<%:cbi_add Eintrag hinzufügen%>" />
36                                         <% end %><% if self.err_invalid then %><div class="cbi-error"><%:cbi_invalid Fehler: Ungültige Eingabe%></div><% end %>
37                                 </div>
38 <% end %>
39                                 </div>