diff options
author | ascob <menosmalo753@gmail.com> | 2016-10-05 18:40:07 +0200 |
---|---|---|
committer | ascob <menosmalo753@gmail.com> | 2017-01-15 14:18:08 +0100 |
commit | cd8096b0ce66be927fa0e73405aa503e2201c2ca (patch) | |
tree | 10d30c64b610f847f1af01ffcff0d74b680d8383 /applications/luci-app-dynapoint/luasrc/view | |
parent | d4c33720208346ee7983213fe764df3102b8a771 (diff) |
luci-app-dynapoint: new package
Add luci-app-dynapoint to repo
LuCI Support for DynaPoint
Dynapoint allows dynamic access point creation
and deletion depending on changes of certain network conditions.
More information: https://github.com/thuehn/dynapoint
Signed-off-by: Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
Diffstat (limited to 'applications/luci-app-dynapoint/luasrc/view')
-rw-r--r-- | applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_checkbox.htm | 6 | ||||
-rw-r--r-- | applications/luci-app-dynapoint/luasrc/view/dynapoint/cbi_color.htm | 18 |
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%> |