2 local v = self:valuelist(section)
5 <% if self.widget == "select" then %>
6 <select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if self.size then %> size="<%=self.size%>"<% end %>>
7 <%for i, key in pairs(self.keylist) do %>
8 <option<% if luci.util.contains(v, key) then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option>
11 <% elseif self.widget == "checkbox" then
13 for i, key in pairs(self.keylist) do
15 <%=self.vallist[i]%><input type="checkbox" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if luci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" />
16 <% if c == self.size then c = 0 %><br />