Skip to content
Snippets Groups Projects
Commit 086dc50e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add overview and backlink to it

parent 735e224d
No related branches found
No related tags found
No related merge requests found
...@@ -27,14 +27,9 @@ $aWidgetOptions=[]; ...@@ -27,14 +27,9 @@ $aWidgetOptions=[];
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
if(!$renderAdminLTE->getComponent($sComponent)) { if(!$renderAdminLTE->getComponent($sComponent)) {
echo ' echo '<h2>Show all components...</h2>';
<h2>Ooops</h2>
<p>Maybe there is a typo ... the component <strong>&quot;'.$sComponent.'&quot;</strong> was not found.</p>
<p>Show all components...</p>
';
$sAllWidgets='';
foreach($renderAdminLTE->getComponents(1) as $sComponent=>$aComponent){ foreach($renderAdminLTE->getComponents(1) as $sComponent=>$aComponent){
// code to fix ... // code to fix ...
...@@ -46,8 +41,20 @@ if(!$renderAdminLTE->getComponent($sComponent)) { ...@@ -46,8 +41,20 @@ if(!$renderAdminLTE->getComponent($sComponent)) {
} }
} }
// print_r($aWidgetOptions); // print_r($aWidgetOptions);
echo getOutput("\$renderAdminLTE->".$aComponent['method']."(".var_export($aWidgetOptions, 1).");") . '<br><br>'; $sAllWidgets.= $renderAdminLTE->addCol(
$renderAdminLTE->getCard(array (
'title' => $aComponent['label'],
//'tools' => 'Tools',
'text' => getOutput("\$renderAdminLTE->".$aComponent['method']."(".var_export($aWidgetOptions, 1).");"),
'footer' => '<a href="?id='.$sComponent.'" class="btn btn-secondary">Test ['.$aComponent['label'].']</a>',
)),
3,
false
);
} }
echo $renderAdminLTE->addRow(
$sAllWidgets
);
} else { } else {
...@@ -128,7 +135,7 @@ if(!$renderAdminLTE->getComponent($sComponent)) { ...@@ -128,7 +135,7 @@ if(!$renderAdminLTE->getComponent($sComponent)) {
// ---------- output // ---------- output
echo $renderAdminLTE->addRow( echo $renderAdminLTE->addRow(
'<h2>'.$aComp['label'].'</h2>' '<h2><a href="?" class="btn btn-secondary"> << </a> '.$aComp['label'].'</h2>'
) )
.$renderAdminLTE->addRow( .$renderAdminLTE->addRow(
'<p>'.$aComp['description'].'</p>' '<p>'.$aComp['description'].'</p>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment