xfvalue.htm 513 B

12345678910
  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" data-update="click change" type="checkbox" <% if self.disable == 1 then %>disabled <% end %><%=
  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. <label<%= attr("for", cbid)%>></label>
  10. <%+cbi/valuefooter%>