<% local v = self:valuelist(section) %> <%+cbi/valueheader%> <% if self.widget == "select" then %> <% elseif self.widget == "checkbox" then local c = 0; for i, key in pairs(self.keylist) do c = c + 1%> " name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if luci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" />
<% if c == self.size then c = 0 %>
<% end end %> <% end %> <%+cbi/valuefooter%>