<%
	local i, key
	local br = self.orientation == "horizontal" and '&#160;' or '<br />'
%>

<%+cbi/valueheader%>
<% if self.widget == "select" then %>
	<select class="cbi-input-select" data-update="change"<%=
		attr("id", cbid) ..
		attr("name", cbid) ..
		ifattr(self.size, "size")
	%>>
		<% for i, key in pairs(self.keylist) do -%>
			<option<%=
				attr("id", cbid.."-"..key) ..
				attr("value", key) ..
				attr("data-index", i) ..
				attr("data-depends", self:deplist2json(section, self.deplist[i])) ..
			