From 36113726698605fe8e65c7bfc0afd04a45bf16f1 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Wed, 10 Jan 2024 21:29:01 +0100 Subject: [PATCH] Only admins can see new Dashboard --- Layout/default/Dashboard/Dashboard.php | 183 ++++++++++++++++++ Layout/default/Dashboard/Index.php | 135 ------------- application/Dashboard/DashboardController.php | 8 +- 3 files changed, 187 insertions(+), 139 deletions(-) create mode 100644 Layout/default/Dashboard/Dashboard.php diff --git a/Layout/default/Dashboard/Dashboard.php b/Layout/default/Dashboard/Dashboard.php new file mode 100644 index 000000000..e318217d5 --- /dev/null +++ b/Layout/default/Dashboard/Dashboard.php @@ -0,0 +1,183 @@ + + + +
+
+
+
+ +
+ +
+
+
+ + + + + + +
+
+

Neuigkeiten

+
+
+ create)?>: + subject): ?> + subject?> + +
+
+
+
text?>
+
+
+ +
+
+
+ + + + +
+
+ + + +
+
+ +
+
+ + +
+
+ +
+
+
+
+
+
+ +
+
Bestellungen
+

/

+
+
+
+
+
+ +
+
+
+
+
+ +
+
Status BEP Installed (244, SD)
+

/

+
+
+
+
+
+ +
+
+
+
+
+ +
+
Status OTO Installed (245, MD)
+

/

+
+
+
+
+
+ +
+
+
+
+
+ +
+
Aktive Anschlüsse
+

/

+
+
+
+
+
+ +
+ +
+
+

Kunden pro Provider

+
+ +
+ +
+
+ + +
+
+ + Keine Aktiven Anschlüsse + +
+
+
+ +
+
+
+ +
+ + + + \ No newline at end of file diff --git a/Layout/default/Dashboard/Index.php b/Layout/default/Dashboard/Index.php index e318217d5..6b73dcf73 100644 --- a/Layout/default/Dashboard/Index.php +++ b/Layout/default/Dashboard/Index.php @@ -45,139 +45,4 @@ -
-
- - - -
-
- -
-
- - -
-
- -
-
-
-
-
-
- -
-
Bestellungen
-

/

-
-
-
-
-
- -
-
-
-
-
- -
-
Status BEP Installed (244, SD)
-

/

-
-
-
-
-
- -
-
-
-
-
- -
-
Status OTO Installed (245, MD)
-

/

-
-
-
-
-
- -
-
-
-
-
- -
-
Aktive Anschlüsse
-

/

-
-
-
-
-
- -
- -
-
-

Kunden pro Provider

-
- -
- -
-
- - -
-
- - Keine Aktiven Anschlüsse - -
-
-
- -
-
-
- -
- - - \ No newline at end of file diff --git a/application/Dashboard/DashboardController.php b/application/Dashboard/DashboardController.php index 2687c4d0d..86178eabc 100644 --- a/application/Dashboard/DashboardController.php +++ b/application/Dashboard/DashboardController.php @@ -23,18 +23,18 @@ class DashboardController extends mfBaseController { $newss = NewsModel::getAll(); $this->layout()->set("newss", $newss); - - if($this->me->is(["Admin", "netowner", "salespartner"]) || $this->me->can("Preorder")) { + //if($this->me->is(["Admin", "netowner", "salespartner"]) || $this->me->can("Preorder")) { + if($this->me->is("Admin")) { return $this->dashboardAction(); } } protected function dashboardAction() { + $this->layout()->setTemplate("Dashboard/Dashboard"); + $r = $this->request; - - $campaign_ids = $r->campaign_id; if($campaign_ids && !is_array($campaign_ids)) { $campaign_ids = [$campaign_ids];