mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-02-07 14:18:41 +00:00
Better dummy dashboard implementation
This commit is contained in:
parent
f13911bc23
commit
8cfaa61779
|
|
@ -86,7 +86,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return RenderableInterface
|
||||
* @return \Serializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
|
|
@ -97,6 +97,11 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$view->setTemplate('/Modules/Dashboard/Theme/Backend/dashboard');
|
||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000301001, $request, $response));
|
||||
|
||||
$view->addData('panels', [
|
||||
$this->app->moduleManager->get('News')->viewDashboard($request, $response, $data),
|
||||
$this->app->moduleManager->get('Tasks')->viewDashboard($request, $response, $data)
|
||||
]);
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
<?php include __DIR__ . '/../../../News/Theme/Backend/dashboard-news.tpl.php'; ?>
|
||||
<?php include __DIR__ . '/../../../Calendar/Theme/Backend/dashboard-calendar.tpl.php'; ?>
|
||||
<?php include __DIR__ . '/../../../Tasks/Theme/Backend/dashboard-task.tpl.php'; ?>
|
||||
<?php include __DIR__ . '/../../../Reporter/Theme/Backend/dashboard-reporter.tpl.php'; ?>
|
||||
<div class="row">
|
||||
<?php $panels = $this->getData('panels'); ?>
|
||||
<?php foreach($panels as $panel) : ?>
|
||||
<?= $panel->render(); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user