From eb7f227206917505c5142e2cb0948b39b9f450f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Schr=C3=B6der?= Date: Wed, 29 Apr 2015 17:04:19 +0200 Subject: [PATCH] Added wireless device editor and macfilter editor --- luciexpress/htdocs/css/app.css | 10 ++ luciexpress/htdocs/index.html | 3 +- luciexpress/htdocs/plugins/core/plugin.json | 2 + .../plugins/core/widgets/luci.config.js | 61 +++++++++ .../plugins/core/widgets/luci.navbar.html | 73 ++++++----- .../widgets/uci.wireless.device.edit.html | 0 .../core/widgets/uci.wireless.device.edit.js | 0 .../core/widgets/uci.wireless.interface.html | 90 ++++--------- .../core/widgets/uci.wireless.interface.js | 3 + ...uci.wireless.interface.macfilter.edit.html | 67 ++++++++++ .../uci.wireless.interface.macfilter.edit.js | 119 ++++++++++++++++++ .../plugins/wifi/pages/wifi.general.html | 64 +++++----- .../plugins/wifi/pages/wifi.mac_filter.html | 17 ++- .../plugins/wifi/pages/wifi.mac_filter.js | 41 +++++- .../plugins/wifi/pages/wifi.schedule.html | 27 ++-- .../plugins/wifi/pages/wifi.settings.html | 13 +- .../htdocs/plugins/wifi/pages/wifi.wps.html | 29 ++--- luciexpress/share/menu.d/wifi.json | 2 +- 18 files changed, 444 insertions(+), 177 deletions(-) create mode 100644 luciexpress/htdocs/plugins/core/widgets/luci.config.js create mode 100644 luciexpress/htdocs/plugins/core/widgets/uci.wireless.device.edit.html create mode 100644 luciexpress/htdocs/plugins/core/widgets/uci.wireless.device.edit.js create mode 100644 luciexpress/htdocs/plugins/core/widgets/uci.wireless.interface.macfilter.edit.html create mode 100644 luciexpress/htdocs/plugins/core/widgets/uci.wireless.interface.macfilter.edit.js diff --git a/luciexpress/htdocs/css/app.css b/luciexpress/htdocs/css/app.css index a67a1bb94..1c53bc9e5 100644 --- a/luciexpress/htdocs/css/app.css +++ b/luciexpress/htdocs/css/app.css @@ -4,3 +4,13 @@ .modal-backdrop { z-index: 0; } + +input[type="checkbox"]:not(:checked) + label, [type="checkbox"]:checked + label { + cursor: pointer; + font-weight: normal; + line-height: 20px; + margin-bottom: 15px; + padding-left: 25px; + position: relative; + z-index: 2; +} diff --git a/luciexpress/htdocs/index.html b/luciexpress/htdocs/index.html index ff4991075..d8d37b67e 100644 --- a/luciexpress/htdocs/index.html +++ b/luciexpress/htdocs/index.html @@ -11,8 +11,9 @@ - + +
diff --git a/luciexpress/htdocs/plugins/core/plugin.json b/luciexpress/htdocs/plugins/core/plugin.json index ccc313411..5666ab5a9 100644 --- a/luciexpress/htdocs/plugins/core/plugin.json +++ b/luciexpress/htdocs/plugins/core/plugin.json @@ -11,7 +11,9 @@ "widgets/luci.progress", "widgets/luci.table", "widgets/luci.top_bar", + "widgets/luci.config", "widgets/uci.wireless.interface", + "widgets/uci.wireless.interface.macfilter.edit", "widgets/uci.firewall.nat.rule.edit", "widgets/core.modal" ], diff --git a/luciexpress/htdocs/plugins/core/widgets/luci.config.js b/luciexpress/htdocs/plugins/core/widgets/luci.config.js new file mode 100644 index 000000000..3390bfe00 --- /dev/null +++ b/luciexpress/htdocs/plugins/core/widgets/luci.config.js @@ -0,0 +1,61 @@ +$juci.module("core") +.directive("luciConfig", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '
', + replace: true, + transclude: true + }; +}) +.directive("luciConfigSection", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '
', + replace: true, + transclude: true + }; +}) +.directive("luciConfigInfo", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '

', + replace: true, + transclude: true + }; +}) +.directive("luciConfigHeading", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '

', + replace: true, + transclude: true + }; +}) +.directive("luciConfigLines", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '
', + replace: true, + transclude: true + }; +}) +.directive("luciConfigLine", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '
', + replace: true, + scope: { + title: "=" + }, + transclude: true + }; +}) +.directive("luciConfigFooter", function(){ + var plugin_root = $juci.module("core").plugin_root; + return { + template: '
', + replace: true, + transclude: true + }; +}); + diff --git a/luciexpress/htdocs/plugins/core/widgets/luci.navbar.html b/luciexpress/htdocs/plugins/core/widgets/luci.navbar.html index 25d75c084..d8e3e2c75 100644 --- a/luciexpress/htdocs/plugins/core/widgets/luci.navbar.html +++ b/luciexpress/htdocs/plugins/core/widgets/luci.navbar.html @@ -1,41 +1,38 @@