X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fbase%2Fluasrc%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;fp=modules%2Fbase%2Fluasrc%2Fluasrc%2Fview%2Fcbi%2Fucisection.htm;h=3b69f12f2ec8da9dc389a85ad373326f520c0495;hp=0000000000000000000000000000000000000000;hb=7043c30e0e55bbbfacdddf97619b6bae96d20ddb;hpb=bbb44cf245c11bc0c1d59e836007c9e8c3bfa209 diff --git a/modules/base/luasrc/luasrc/view/cbi/ucisection.htm b/modules/base/luasrc/luasrc/view/cbi/ucisection.htm new file mode 100644 index 000000000..3b69f12f2 --- /dev/null +++ b/modules/base/luasrc/luasrc/view/cbi/ucisection.htm @@ -0,0 +1,75 @@ +<%- + if type(self.hidden) == "table" then + for k, v in pairs(self.hidden) do +-%> + +<%- + end + end +%> + +<% if self.tabs then %> + <%+cbi/tabcontainer%> +<% else %> + <% self:render_children(section, scope or {}) %> +<% end %> + +<% if self.error and self.error[section] then -%> +
+ +
+<%- end %> + +<% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %> +
+ <% if self.dynamic then %> + + <% if self.optionals[section] and #self.optionals[section] > 0 then %> + + <% end %> + <% else %> + + + <% end %> + +
+<% end %>