2020-05-29 13:41:58 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
|
|
|
* @since 0.10.0
|
|
|
|
* @license https://opensource.org/licenses/mit-license.php MIT License
|
|
|
|
* @var \App\View\AppView $this
|
|
|
|
*/
|
2021-09-09 11:05:00 +02:00
|
|
|
use Cake\Core\Configure;
|
2020-05-29 13:41:58 +02:00
|
|
|
|
|
|
|
$cakeDescription = 'Cerebrate';
|
2021-10-08 16:56:08 +02:00
|
|
|
|
2021-10-18 13:28:26 +02:00
|
|
|
$sidebarOpen = $loggedUser->user_settings_by_name_with_fallback['ui.sidebar.expanded']['value'];
|
2020-05-29 13:41:58 +02:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<?= $this->Html->charset() ?>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>
|
|
|
|
<?= $cakeDescription ?>:
|
|
|
|
<?= $this->fetch('title') ?>
|
|
|
|
</title>
|
|
|
|
<?= $this->Html->meta('icon') ?>
|
2020-06-23 14:14:20 +02:00
|
|
|
<?php
|
2021-09-16 15:50:55 +02:00
|
|
|
echo $this->Html->css('themes/bootstrap-' . $bsTheme);
|
|
|
|
echo $this->Html->css('themes/theme-' . $bsTheme);
|
2020-06-23 14:14:20 +02:00
|
|
|
?>
|
2020-05-29 13:41:58 +02:00
|
|
|
<?= $this->Html->css('main.css') ?>
|
|
|
|
<?= $this->Html->css('font-awesome') ?>
|
2021-09-07 15:51:21 +02:00
|
|
|
<?= $this->Html->css('layout.css') ?>
|
2020-05-29 13:41:58 +02:00
|
|
|
<?= $this->Html->script('jquery-3.5.1.min.js') ?>
|
|
|
|
<?= $this->Html->script('bootstrap.bundle.js') ?>
|
|
|
|
<?= $this->Html->script('main.js') ?>
|
2021-09-10 11:55:54 +02:00
|
|
|
<?= $this->Html->script('utils.js') ?>
|
2020-12-07 14:15:59 +01:00
|
|
|
<?= $this->Html->script('bootstrap-helper.js') ?>
|
2020-12-10 15:18:02 +01:00
|
|
|
<?= $this->Html->script('api-helper.js') ?>
|
2021-07-21 11:18:06 +02:00
|
|
|
<?= $this->Html->script('select2.min.js') ?>
|
2021-07-05 14:14:17 +02:00
|
|
|
<?= $this->Html->script('CodeMirror/codemirror.js') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/mode/javascript/javascript') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/addon/hint/show-hint') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/addon/lint/lint') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/addon/lint/jsonlint') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/addon/lint/json-lint') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/addon/edit/matchbrackets') ?>
|
|
|
|
<?= $this->Html->script('CodeMirror/addon/edit/closebrackets') ?>
|
|
|
|
<?= $this->Html->css('CodeMirror/codemirror') ?>
|
|
|
|
<?= $this->Html->css('CodeMirror/codemirror-additional') ?>
|
|
|
|
<?= $this->Html->css('CodeMirror/addon/hint/show-hint') ?>
|
|
|
|
<?= $this->Html->css('CodeMirror/addon/lint/lint') ?>
|
2021-07-21 11:18:06 +02:00
|
|
|
<?= $this->Html->css('select2.min') ?>
|
2021-09-28 10:59:57 +02:00
|
|
|
<?= $this->Html->css('select2-bootstrap5') ?>
|
2021-09-07 10:00:25 +02:00
|
|
|
<?= $this->Html->script('apexcharts.min') ?>
|
|
|
|
<?= $this->Html->css('apexcharts') ?>
|
|
|
|
|
2020-05-29 13:41:58 +02:00
|
|
|
<?= $this->fetch('meta') ?>
|
|
|
|
<?= $this->fetch('css') ?>
|
|
|
|
<?= $this->fetch('script') ?>
|
2021-09-02 12:03:07 +02:00
|
|
|
|
|
|
|
<?= $this->Html->script('Tags.tagging') ?>
|
|
|
|
<?= $this->Html->css('Tags.tagging') ?>
|
|
|
|
|
2020-05-29 13:41:58 +02:00
|
|
|
<?= $this->Html->meta('favicon.ico', '/img/favicon.ico', ['type' => 'icon']); ?>
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-09-07 15:51:21 +02:00
|
|
|
<div class="main-wrapper">
|
2021-09-17 16:32:32 +02:00
|
|
|
<header class="navbar top-navbar navbar-dark">
|
2021-09-07 15:51:21 +02:00
|
|
|
<?= $this->element('layouts/header') ?>
|
|
|
|
</header>
|
2021-10-08 16:56:08 +02:00
|
|
|
<nav id="app-sidebar" class="collapse d-sm-block sidebar <?= !empty($sidebarOpen) ? 'expanded' : '' ?>">
|
2021-09-07 15:51:21 +02:00
|
|
|
<?= $this->element('layouts/sidebar') ?>
|
2021-09-16 15:50:55 +02:00
|
|
|
</nav>
|
2021-09-07 15:51:21 +02:00
|
|
|
<main role="main" class="content">
|
2021-09-09 11:05:00 +02:00
|
|
|
<div class="container-fluid mt-1">
|
2021-09-07 15:51:21 +02:00
|
|
|
<?= $this->Flash->render() ?>
|
|
|
|
<?= $this->fetch('content') ?>
|
2020-05-29 13:41:58 +02:00
|
|
|
</div>
|
2021-09-07 15:51:21 +02:00
|
|
|
</main>
|
|
|
|
</div>
|
2020-05-29 13:41:58 +02:00
|
|
|
<div id="mainModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mediumModalLabel" aria-hidden="true"></div>
|
2020-12-15 10:40:49 +01:00
|
|
|
<div id="mainToastContainer" style="position: absolute; top: 15px; right: 15px; z-index: 1080"></div>
|
2020-12-10 15:18:02 +01:00
|
|
|
<div id="mainModalContainer"></div>
|
2020-05-29 13:41:58 +02:00
|
|
|
</body>
|
2021-09-07 15:51:21 +02:00
|
|
|
|
2021-01-18 09:47:15 +01:00
|
|
|
<script>
|
2021-09-16 15:50:55 +02:00
|
|
|
const bsTheme = '<?= h($bsTheme); ?>'
|
2021-09-28 10:59:57 +02:00
|
|
|
$.fn.select2.defaults.set('theme', 'bootstrap-5');
|
2021-01-18 09:47:15 +01:00
|
|
|
</script>
|
2020-05-29 13:41:58 +02:00
|
|
|
</html>
|