summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/view/cbi/fvalue.htm
blob: a1e0808e8d3e8bf1845d4838b244ed6bb0b605f2 (plain)
1
2
3
4
5
6
7
8
9
<%+cbi/valueheader%>
	<input type="hidden" value="1"<%=
		attr("name", "cbi.cbe." .. self.config .. "." .. section .. "." .. self.option)
	%> />
	<input class="cbi-input-checkbox" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="checkbox"<%=
		attr("id", cbid) .. attr("name", cbid) .. attr("value", self.enabled or 1) ..
		ifattr((self:cfgvalue(section) or self.default) == self.enabled, "checked", "checked")
	%> />
<%+cbi/valuefooter%>