build: introduce luci-base
[project/luci.git] / modules / base / luasrc / luasrc / view / cbi / fvalue.htm
1 <%+cbi/valueheader%>
2 <input type="hidden" value="1"<%=
3 attr("name", "cbi.cbe." .. self.config .. "." .. section .. "." .. self.option)
4 %> />
5 <input class="cbi-input-checkbox" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="checkbox"<%=
6 attr("id", cbid) .. attr("name", cbid) .. attr("value", self.enabled or 1) ..
7 ifattr((self:cfgvalue(section) or self.default) == self.enabled, "checked", "checked")
8 %> />
9 <%+cbi/valuefooter%>