X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Flvalue.htm;h=c6b54128f79e5aaf37d65e42906084c3b27c5d6d;hb=d7fdd890304e4b684ed842f22a2b210e3fb41666;hp=f1ae5a093900db90c816d219646ad805d5d413c0;hpb=d35a620e9f5665a94967f4bd02c93581a1dd7e00;p=project%2Fluci.git diff --git a/libs/cbi/luasrc/view/cbi/lvalue.htm b/libs/cbi/luasrc/view/cbi/lvalue.htm index f1ae5a093..c6b54128f 100644 --- a/libs/cbi/luasrc/view/cbi/lvalue.htm +++ b/libs/cbi/luasrc/view/cbi/lvalue.htm @@ -1,16 +1,32 @@ +<%# +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$ + +-%> <%+cbi/valueheader%> <% if self.widget == "select" then %> - + <% elseif self.widget == "radio" then - local c = 0; + local c = 0 for i, key in pairs(self.keylist) do - c = c + 1%> - <%=self.vallist[i]%>"<% if self:cfgvalue(section) == 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%>