diff options
Diffstat (limited to 'modules/luci-compat/luasrc/view/cbi/fvalue.htm')
-rw-r--r-- | modules/luci-compat/luasrc/view/cbi/fvalue.htm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/fvalue.htm b/modules/luci-compat/luasrc/view/cbi/fvalue.htm new file mode 100644 index 0000000000..7f975b95e1 --- /dev/null +++ b/modules/luci-compat/luasrc/view/cbi/fvalue.htm @@ -0,0 +1,12 @@ +<%+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%> |