From d988835e1750eb2064f49e34a01474c106a0c72b Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Sun, 1 Apr 2018 11:48:32 +0200 Subject: [PATCH] fix: delete button, decription field not working; add ui response to clicking the clock --- net/wol/Makefile | 2 +- .../OPNsense/Wol/Api/WolController.php | 2 +- .../controllers/OPNsense/Wol/forms/host.xml | 2 +- .../mvc/app/views/OPNsense/Wol/index.volt | 51 ++++++++++++------- 4 files changed, 37 insertions(+), 20 deletions(-) diff --git a/net/wol/Makefile b/net/wol/Makefile index a6272d200..3daf640b1 100644 --- a/net/wol/Makefile +++ b/net/wol/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= wol PLUGIN_VERSION= 2.0.d -PLUGIN_REVISION= 1 +PLUGIN_REVISION= 2 PLUGIN_DEPENDS= wol PLUGIN_COMMENT= Wake on LAN Service PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/Api/WolController.php b/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/Api/WolController.php index 76cc7b675..d6b035344 100644 --- a/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/Api/WolController.php +++ b/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/Api/WolController.php @@ -63,7 +63,7 @@ class WolController extends ApiMutableModelControllerBase } public function delHostAction($uuid) { - $this->delBase('host', $uuid); + $this->delBase('wolentry', $uuid); } public function searchHostAction() { diff --git a/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/forms/host.xml b/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/forms/host.xml index 87bc38866..3c00c8232 100644 --- a/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/forms/host.xml +++ b/net/wol/src/opnsense/mvc/app/controllers/OPNsense/Wol/forms/host.xml @@ -12,7 +12,7 @@ Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx - host.description + host.descr text You may enter a description here for your reference (not parsed). diff --git a/net/wol/src/opnsense/mvc/app/views/OPNsense/Wol/index.volt b/net/wol/src/opnsense/mvc/app/views/OPNsense/Wol/index.volt index 7f72fb16b..9ffe7ff10 100644 --- a/net/wol/src/opnsense/mvc/app/views/OPNsense/Wol/index.volt +++ b/net/wol/src/opnsense/mvc/app/views/OPNsense/Wol/index.volt @@ -1,16 +1,41 @@