From 609adcc431fd03e53af9740d3842e4c52dadb565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 12 Nov 2019 16:02:13 +0100 Subject: [PATCH] =?UTF-8?q?Dashboard=20f=C3=BCr=20Lehrauftr=C3=A4ge=20hinz?= =?UTF-8?q?ugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config/navigation.php | 97 ++++++++++--------- .../lehre/lehrauftrag/Lehrauftrag.php | 10 ++ .../views/lehre/lehrauftrag/Dashboard.php | 38 ++++++++ 3 files changed, 100 insertions(+), 45 deletions(-) create mode 100644 application/views/lehre/lehrauftrag/Dashboard.php diff --git a/application/config/navigation.php b/application/config/navigation.php index 7f2290c94..400e414ad 100644 --- a/application/config/navigation.php +++ b/application/config/navigation.php @@ -51,16 +51,16 @@ $config['navigation_header'] = array( 'sort' => 30, 'requiredPermissions' => 'infocenter:r' ), - 'lehrauftrag' => array( - 'link' => site_url('lehre/lehrauftrag/Lehrauftrag'), - 'description' => 'Lehrauftrag', - 'expand' => true, - 'sort' => 40, - 'requiredPermissions' => array( - 'lehre/lehrauftrag_bestellen:r', - 'lehre/lehrauftrag_erteilen:r' - ) - ) + 'lehrauftrag' => array( + 'link' => site_url('lehre/lehrauftrag/Lehrauftrag/Dashboard'), + 'description' => 'Lehrauftrag', + 'expand' => true, + 'sort' => 40, + 'requiredPermissions' => array( + 'lehre/lehrauftrag_bestellen:r', + 'lehre/lehrauftrag_erteilen:r' + ) + ) ) ), 'Personen' => array( @@ -136,40 +136,47 @@ $config['navigation_menu']['organisation/Reihungstest/index'] = array( ) ); -$config['navigation_menu']['lehre/lehrauftrag/Lehrauftrag/index'] = array( - 'lehrauftragBestellen' => array( - 'link' => site_url('lehre/lehrauftrag/Lehrauftrag'), - 'description' => 'Lehrauftrag bestellen', - 'icon' => '', - 'sort' => 1, - 'requiredPermissions' => 'lehre/lehrauftrag_bestellen:r', - 'target' => '_self' - ), - 'lehrauftragErteilen' => array( - 'link' => site_url('lehre/lehrauftrag/LehrauftragErteilen'), - 'description' => 'Lehrauftrag erteilen', - 'icon' => '', - 'sort' => 1, - 'requiredPermissions' => 'lehre/lehrauftrag_erteilen:r', - 'target' => '_self' - ) +$config['navigation_menu']['lehre/lehrauftrag/Lehrauftrag/*'] = array( + 'lehrauftragDashboard' => array( + 'link' => site_url('lehre/lehrauftrag/Lehrauftrag/Dashboard'), + 'description' => 'Dashboard', + 'icon' => 'dashboard', + 'sort' => 1, + 'requiredPermissions' => array('lehre/lehrauftrag_bestellen:r','lehre/lehrauftrag_erteilen:r') + ),'lehrauftragBestellen' => array( + 'link' => site_url('lehre/lehrauftrag/Lehrauftrag'), + 'description' => 'Lehrauftrag bestellen', + 'icon' => '', + 'sort' => 1, + 'requiredPermissions' => 'lehre/lehrauftrag_bestellen:r' + ), + 'lehrauftragErteilen' => array( + 'link' => site_url('lehre/lehrauftrag/LehrauftragErteilen'), + 'description' => 'Lehrauftrag erteilen', + 'icon' => '', + 'sort' => 1, + 'requiredPermissions' => 'lehre/lehrauftrag_erteilen:r' + ) ); - -$config['navigation_menu']['lehre/lehrauftrag/LehrauftragErteilen/index'] = array( - 'lehrauftragBestellen' => array( - 'link' => site_url('lehre/lehrauftrag/Lehrauftrag'), - 'description' => 'Lehrauftrag bestellen', - 'icon' => '', - 'sort' => 1, - 'requiredPermissions' => 'lehre/lehrauftrag_bestellen:r', - 'target' => '_self' - ), - 'lehrauftragErteilen' => array( - 'link' => site_url('lehre/lehrauftrag/LehrauftragErteilen'), - 'description' => 'Lehrauftrag erteilen', - 'icon' => '', - 'sort' => 1, - 'requiredPermissions' => 'lehre/lehrauftrag_erteilen:r', - 'target' => '_self' - ) +$config['navigation_menu']['lehre/lehrauftrag/LehrauftragErteilen/*'] = array( + 'lehrauftragDashboard' => array( + 'link' => site_url('lehre/lehrauftrag/Lehrauftrag/Dashboard'), + 'description' => 'Dashboard', + 'icon' => 'dashboard', + 'sort' => 1, + 'requiredPermissions' => array('lehre/lehrauftrag_bestellen:r','lehre/lehrauftrag_erteilen:r') + ),'lehrauftragBestellen' => array( + 'link' => site_url('lehre/lehrauftrag/Lehrauftrag'), + 'description' => 'Lehrauftrag bestellen', + 'icon' => '', + 'sort' => 1, + 'requiredPermissions' => 'lehre/lehrauftrag_bestellen:r' + ), + 'lehrauftragErteilen' => array( + 'link' => site_url('lehre/lehrauftrag/LehrauftragErteilen'), + 'description' => 'Lehrauftrag erteilen', + 'icon' => '', + 'sort' => 1, + 'requiredPermissions' => 'lehre/lehrauftrag_erteilen:r' + ) ); diff --git a/application/controllers/lehre/lehrauftrag/Lehrauftrag.php b/application/controllers/lehre/lehrauftrag/Lehrauftrag.php index eb68e50fd..862d6c6b2 100644 --- a/application/controllers/lehre/lehrauftrag/Lehrauftrag.php +++ b/application/controllers/lehre/lehrauftrag/Lehrauftrag.php @@ -26,6 +26,7 @@ class Lehrauftrag extends Auth_Controller array( 'index' => 'lehre/lehrauftrag_bestellen:r', 'orderLehrauftrag' => 'lehre/lehrauftrag_bestellen:rw', + 'Dashboard' => array('lehre/lehrauftrag_bestellen:r', 'lehre/lehrauftrag_erteilen:rw') ) ); @@ -59,6 +60,15 @@ class Lehrauftrag extends Auth_Controller $this->setControllerId(); // sets the controller id } + /** + * Display of Custom Dashboard for Lehraufträge App + * Charts are hooked from Reporting Addon + */ + public function Dashboard() + { + $this->load->view('lehre/lehrauftrag/Dashboard.php'); + } + // ----------------------------------------------------------------------------------------------------------------- // Public methods /** diff --git a/application/views/lehre/lehrauftrag/Dashboard.php b/application/views/lehre/lehrauftrag/Dashboard.php new file mode 100644 index 000000000..a14cefa7a --- /dev/null +++ b/application/views/lehre/lehrauftrag/Dashboard.php @@ -0,0 +1,38 @@ +load->view( + 'templates/FHC-Header', + array( + 'title' => 'Lehrauftrag bestellen', + 'jquery' => true, + 'jqueryui' => true, + 'bootstrap' => true, + 'fontawesome' => true, + 'sbadmintemplate' => true, + 'ajaxlib' => true, + 'dialoglib' => true, + 'navigationwidget' => true, + 'addons' => true, + ) +); +?> + + + widgetlib->widget('NavigationWidget'); ?> +
+
+ +
+
+ +
+
+ +
+ +
+
+ + +load->view('templates/FHC-Footer'); ?>