From 5f9910566de7165f4bb0ee62bc3ace53c708a94e Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 25 Mar 2008 23:34:21 +0000 Subject: * Entering Version 0.2 * Completed CBI * Minor bugfixes and enhancements --- src/ffluci/view/cbi/mvalue.htm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/ffluci/view/cbi/mvalue.htm (limited to 'src/ffluci/view/cbi/mvalue.htm') diff --git a/src/ffluci/view/cbi/mvalue.htm b/src/ffluci/view/cbi/mvalue.htm new file mode 100644 index 0000000000..de7bd0c61d --- /dev/null +++ b/src/ffluci/view/cbi/mvalue.htm @@ -0,0 +1,26 @@ +<% +local v = self:valuelist(section) +%> +
+
+
<%=self.title%>
+
<%=self.description%>
+
+
+<% 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 ffluci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" /> +<% if c == self.size then c = 0 %>
+<% end end %> +<% end %> +
+
+
\ No newline at end of file -- cgit v1.2.3