From b8124f18f88fe11158eb122a1e362cfbd512cf4f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 27 May 2008 08:14:24 +0000 Subject: * Separated the MVC-Webframework from core * Separated i18n from core to prepare translations --- web/src/view/cbi/mvalue.htm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/src/view/cbi/mvalue.htm (limited to 'web/src/view/cbi/mvalue.htm') diff --git a/web/src/view/cbi/mvalue.htm b/web/src/view/cbi/mvalue.htm new file mode 100644 index 0000000000..bed66e569a --- /dev/null +++ b/web/src/view/cbi/mvalue.htm @@ -0,0 +1,19 @@ +<% +local v = self:valuelist(section) +%> +<%+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%> + <%=self.vallist[i]%>[]"<% if luci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" /> +<% if c == self.size then c = 0 %>
+<% end end %> +<% end %> +<%+cbi/valuefooter%> \ No newline at end of file -- cgit v1.2.3