0
0
mirror of https://github.com/openwrt/luci.git synced 2025-02-23 14:46:18 +00:00
Jo-Philipp Wich d5dff8f9a5 treewide: move server side CBI support to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 20:49:31 +01:00

13 lines
383 B
HTML

<%+cbi/valueheader%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
"Checkbox", self:cfgvalue(section) or self.default, {
id = cbid,
name = cbid,
readonly = self.readonly,
hiddenname = "cbi.cbe." .. self.config .. "." .. section .. "." .. self.option,
value_enabled = self.enabled or 1,
value_disabled = self.disabled or 0
}
}))%>></div>
<%+cbi/valuefooter%>