summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dynapoint/luasrc/view/dynapoint
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-dynapoint/luasrc/view/dynapoint')
-rw-r--r--applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_checkbox.htm6
-rw-r--r--applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_color.htm18
2 files changed, 24 insertions, 0 deletions
diff --git a/applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_checkbox.htm b/applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_checkbox.htm
new file mode 100644
index 0000000000..5f8bcd5ee0
--- /dev/null
+++ b/applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_checkbox.htm
@@ -0,0 +1,6 @@
+<%+cbi/valueheader%>
+
+<input class="cbi-input-checkbox" disabled data-update="click change" type="checkbox" id="cbid.dynapoint.internet.use_curl" name="cbid.dynapoint.internet.use_curl" value="1" />
+
+
+<%+cbi/valuefooter%>
diff --git a/applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_color.htm b/applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_color.htm
new file mode 100644
index 0000000000..bfc710e236
--- /dev/null
+++ b/applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_color.htm
@@ -0,0 +1,18 @@
+<%+cbi/valueheader%>
+
+
+<%
+if (self:cfgvalue(section) == translate("Disabled")) then
+%>
+
+<span id="<%=cbid%>.disabled" style="background-color:red;"><%=self:cfgvalue(section)%></span>
+
+<%
+else
+%>
+<span id="<%=cbid%>.disabled" style="background-color:lime;"><%=self:cfgvalue(section)%></span>
+<%
+end
+%>
+
+<%+cbi/valuefooter%>