Merge pull request #977 from stangri/luci-app-vpnbypass
[project/luci.git] / applications / luci-app-ddns / luasrc / view / ddns / overview_enabled.htm
1
2 <!-- ++ BEGIN ++ Dynamic DNS ++ overview_enabled.htm ++ -->
3 <%+cbi/valueheader%>
4
5 <input type="hidden" value="1"<%=
6         attr("name", "cbi.cbe." .. self.config .. "." .. section .. "." .. self.option)
7 %> />
8                                                                  <!-- modified to call own function -->
9 <input class="cbi-input-checkbox" onclick="cbi_d_update(this.id)" onchange="onchange_enabled(this.id)" type="checkbox"<%=
10         attr("id", cbid) .. attr("name", cbid) .. attr("value", self.enabled or 1) ..
11         ifattr((self:cfgvalue(section) or self.default) == self.enabled, "checked", "checked")
12 %> />
13 <label<%= attr("for", cbid)%>></label>
14
15 <%+cbi/valuefooter%>
16 <!-- ++ END ++ Dynamic DNS ++ overview_enabled.htm ++ -->