* luci/libs/cbi: fix syntax error in mvalue template

This commit is contained in:
Jo-Philipp Wich 2008-07-15 22:09:53 +00:00
parent 05d3bf06b4
commit 18f0ebfd8b

View file

@ -27,7 +27,7 @@ local v = self:valuelist(section)
for i, key in pairs(self.keylist) do for i, key in pairs(self.keylist) do
c = c + 1 c = c + 1
%> %>
<input type="checkbox"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr(luci.util.contains(v, key), "checked", "checked") /> <input type="checkbox"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr(luci.util.contains(v, key), "checked", "checked") %> />
<label<%= attr("for", cbid..c) %>><%=self.vallist[i]%></label><br /> <label<%= attr("for", cbid..c) %>><%=self.vallist[i]%></label><br />
<% if c == self.size then c = 0 %><br /> <% if c == self.size then c = 0 %><br />
<% end end %> <% end end %>