This commit is contained in:
Roman Hergenreder
2020-06-14 12:38:35 +02:00
parent 8fc0b4bb05
commit bc2fbbda68
26 changed files with 21488 additions and 12 deletions

View File

@@ -230,10 +230,10 @@ class AdminDashboardBody extends Body {
parent::loadView();
$head = $this->getDocument()->getHead();
$head->addJS(Script::BOOTSTRAP);
$head->loadAdminlte();
// $head->addJS("/js/admin.min.js");
// $head->loadAdminlte();
$this->notifications = $this->getNotifications();
// $this->notifications = $this->getNotifications();
}
private function getContent() {
@@ -253,10 +253,14 @@ class AdminDashboardBody extends Body {
public function getCode() {
$html = parent::getCode();
// $this->getDocument()->getHead()->addJS("/js/admin.min.js");
/*
$header = $this->getHeader();
$sidebar = $this->getSidebar();
$content = $this->getContent();
$html .=
"<!-- LICENSE: /docs/LICENSE_ADMINLTE -->
<body class=\"hold-transition sidebar-mini layout-fixed\">
@@ -266,7 +270,10 @@ class AdminDashboardBody extends Body {
$content
</div>
</body>";
*/
$script = new Script(Script::MIME_TEXT_JAVASCRIPT, "/js/admin.min.js");
$html .= "<body id=\"root\">$script</body>";
return $html;
}
}