summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/fvalue.htm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/fvalue.htm')
-rw-r--r--modules/luci-base/luasrc/view/cbi/fvalue.htm9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/fvalue.htm b/modules/luci-base/luasrc/view/cbi/fvalue.htm
new file mode 100644
index 0000000000..a1e0808e8d
--- /dev/null
+++ b/modules/luci-base/luasrc/view/cbi/fvalue.htm
@@ -0,0 +1,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%>