X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Fmvalue.htm;h=3812a3f7ef476fbcfbdcab6a76b43cd29e2c594e;hp=dcbf782ca1b46bc46f648c864d7caed2294d395f;hb=b618361bf1c7ea160f3e0ef18aa8f409f7a21eff;hpb=0fac92606553ab4317dd744ef980b15185fb024a diff --git a/libs/cbi/luasrc/view/cbi/mvalue.htm b/libs/cbi/luasrc/view/cbi/mvalue.htm index dcbf782ca..3812a3f7e 100644 --- a/libs/cbi/luasrc/view/cbi/mvalue.htm +++ b/libs/cbi/luasrc/view/cbi/mvalue.htm @@ -1,20 +1,35 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> <% -local v = self:valuelist(section) +local v = self:valuelist(section) or {} %> <%+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%>" /> -
+ c = c + 1 +%> + /> + ><%=self.vallist[i]%>
<% if c == self.size then c = 0 %>
<% end end %> <% end %> -<%+cbi/valuefooter%> \ No newline at end of file +<%+cbi/valuefooter%>