From 0fdb2e1265b51b26ed28a8300b2a18759d8ed23c Mon Sep 17 00:00:00 2001 From: sviluppo-giacomo Date: Wed, 30 Apr 2025 09:29:59 +0200 Subject: [PATCH] Add "Licenze" and "Log Licenze" sections to admin panel Introduced two new sections - "Licenze" and "Log Licenze" - to the admin sidebar and created corresponding controllers, views, modals, and scripts to support their functionality. These sections include filtering, listing, and basic interactions such as editing and deletion support. --- .../Admin/Index/Licenze.php | 38 ++++ .../Admin/Index/Loglicenze.php | 36 ++++ .../layouts/scripts/admin/_sidebarAdmin.phtml | 16 ++ .../views/scripts/index/licenze/_modal.phtml | 75 ++++++++ .../scripts/index/licenze/_modalFilter.phtml | 95 ++++++++++ .../scripts/index/licenze/_searchBlock.phtml | 37 ++++ .../views/scripts/index/licenze/list.phtml | 170 +++++++++++++++++ .../views/scripts/index/licenze/td.phtml | 52 +++++ .../views/scripts/index/licenze/th.phtml | 23 +++ .../scripts/index/loglicenze/_modal.phtml | 75 ++++++++ .../index/loglicenze/_modalFilter.phtml | 95 ++++++++++ .../index/loglicenze/_searchBlock.phtml | 45 +++++ .../views/scripts/index/loglicenze/list.phtml | 170 +++++++++++++++++ .../views/scripts/index/loglicenze/td.phtml | 44 +++++ .../views/scripts/index/loglicenze/th.phtml | 21 ++ .../admin/event_handler_listlicenze.js | 179 ++++++++++++++++++ .../admin/event_handler_listloglicenze.js | 179 ++++++++++++++++++ 17 files changed, 1350 insertions(+) create mode 100644 application/controllerSections/Admin/Index/Licenze.php create mode 100644 application/controllerSections/Admin/Index/Loglicenze.php create mode 100644 application/modules/admin/views/scripts/index/licenze/_modal.phtml create mode 100644 application/modules/admin/views/scripts/index/licenze/_modalFilter.phtml create mode 100644 application/modules/admin/views/scripts/index/licenze/_searchBlock.phtml create mode 100644 application/modules/admin/views/scripts/index/licenze/list.phtml create mode 100644 application/modules/admin/views/scripts/index/licenze/td.phtml create mode 100644 application/modules/admin/views/scripts/index/licenze/th.phtml create mode 100644 application/modules/admin/views/scripts/index/loglicenze/_modal.phtml create mode 100644 application/modules/admin/views/scripts/index/loglicenze/_modalFilter.phtml create mode 100644 application/modules/admin/views/scripts/index/loglicenze/_searchBlock.phtml create mode 100644 application/modules/admin/views/scripts/index/loglicenze/list.phtml create mode 100644 application/modules/admin/views/scripts/index/loglicenze/td.phtml create mode 100644 application/modules/admin/views/scripts/index/loglicenze/th.phtml create mode 100644 public/admin/js/handler/admin/event_handler_listlicenze.js create mode 100644 public/admin/js/handler/admin/event_handler_listloglicenze.js diff --git a/application/controllerSections/Admin/Index/Licenze.php b/application/controllerSections/Admin/Index/Licenze.php new file mode 100644 index 0000000..af5ffa1 --- /dev/null +++ b/application/controllerSections/Admin/Index/Licenze.php @@ -0,0 +1,38 @@ +_moduleName = 'admin'; + $this->_resourceName = 'licenze'; + + //Usato per abilitare la sezione filtri + $this->_enableModalFilter = false; + + //Disable new insert of element + $this->_enableNewInsert = false; + + parent::__construct($controller); + } + + public function lista() + { + parent::lista(); + + $this->_controller->_MENUITEM = "licenze"; + $this->_controller->_EVENTLOADER = $this->_controller->getRequest()->getActionName(); + $this->_controller->_PAGETITLE = 'Elenco Licenze'; + $this->_controller->_ICONTITLE = 'fa-key'; + + } + + //Personalizzazione della funzione di delete Elemento singolo + /*protected function deleteElement($id){ + $this->_model->delete($this->_resourceName,$id); + }*/ + + +} diff --git a/application/controllerSections/Admin/Index/Loglicenze.php b/application/controllerSections/Admin/Index/Loglicenze.php new file mode 100644 index 0000000..f3320cf --- /dev/null +++ b/application/controllerSections/Admin/Index/Loglicenze.php @@ -0,0 +1,36 @@ +_moduleName = 'admin'; + $this->_resourceName = 'LogLicenze'; + + //Usato per abilitare la sezione filtri + $this->_enableModalFilter = false; + + //Disable new insert of element + $this->_enableNewInsert = false; + + parent::__construct($controller); + } + + public function lista() + { + parent::lista(); + + $this->_controller->_MENUITEM = "loglicenze"; + $this->_controller->_EVENTLOADER = $this->_controller->getRequest()->getActionName(); + $this->_controller->_PAGETITLE = 'Log Operazioni Licenze'; + $this->_controller->_ICONTITLE = 'fa-list'; + } + + //Personalizzazione della funzione di delete Elemento singolo + /*protected function deleteElement($id){ + $this->_model->delete($this->_resourceName,$id); + }*/ + + +} diff --git a/application/layouts/scripts/admin/_sidebarAdmin.phtml b/application/layouts/scripts/admin/_sidebarAdmin.phtml index 7c645a6..616a817 100644 --- a/application/layouts/scripts/admin/_sidebarAdmin.phtml +++ b/application/layouts/scripts/admin/_sidebarAdmin.phtml @@ -23,6 +23,22 @@ + + + +