2008-07-07 22:00:56 +00:00
|
|
|
<%#
|
|
|
|
LuCI - Lua Configuration Interface
|
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
2010-10-31 21:41:57 +00:00
|
|
|
Copyright 2008-2010 Jo-Philipp Wich <xm@subsignal.org>
|
2008-07-07 22:00:56 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
|
|
|
|
-%>
|
2008-04-11 18:29:19 +00:00
|
|
|
<%+cbi/valueheader%>
|
2010-10-31 21:41:57 +00:00
|
|
|
<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")
|
|
|
|
%> />
|
2008-07-15 17:27:58 +00:00
|
|
|
<%+cbi/valuefooter%>
|