Went through todos

This commit is contained in:
Dennis Eichhorn 2024-05-02 22:54:37 +00:00
parent b4b9a9e777
commit 2271efe0ad
2 changed files with 28 additions and 2 deletions

View File

@ -41,6 +41,12 @@ final class BackendController extends Controller
*
* @return RenderableInterface
*
* @todo Create default dashboard templates which can be used by users, changing them copies it for this user
* https://github.com/Karaka-Management/oms-Dashboard/issues/7
*
* @feature Allow people to modify a dashboard and automatically save it / reload it
* https://github.com/Karaka-Management/oms-Dashboard/issues/6
*
* @since 1.0.0
* @codeCoverageIgnore
*/

View File

@ -1,9 +1,29 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Dashboard
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
// @bug Drag&Drop element sometimes disappear on drop
// For that reason drag&drop got removed temporarily
// https://github.com/Karaka-Management/oms-Dashboard/issues/8
?>
<div class="row">
<?php
$panels = $this->data['panels'];
if (empty($panels)) : ?>
<div class="emptyPage"></div>
<?php else: foreach ($panels as $panel) : ?>
<?php else:
foreach ($panels as $panel) : ?>
<?= $panel->render(); ?>
<?php endforeach; endif; ?>
<?php endforeach;
endif; ?>
</div>