X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Flvalue.htm;h=a6fd18f4ffdc8d0ea339d942d81de11a0021258f;hp=f1ae5a093900db90c816d219646ad805d5d413c0;hb=bda237d0fdb070a6703e529d801adbf40205f47d;hpb=d35a620e9f5665a94967f4bd02c93581a1dd7e00 diff --git a/libs/cbi/luasrc/view/cbi/lvalue.htm b/libs/cbi/luasrc/view/cbi/lvalue.htm index f1ae5a093..a6fd18f4f 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%>