mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2847 - Object details: Preliminary work
- Add ObjectFactory for ObjectDetails, ObjectCard, ... - Update SCSS files to integrate its components Note: A big part of the CSS is hardcoded in cmdbAbstract for now as we still need to discuss / work on the migration of the cmdbAbstract APIs (DisplayBareHeader, DisplayBareProperties, ...)
This commit is contained in:
@@ -39,7 +39,8 @@ class PanelFactory
|
||||
public static function MakeNeutral(string $sTitle)
|
||||
{
|
||||
$oPanel = new Panel($sTitle);
|
||||
$oPanel->SetColor(Panel::ENUM_COLOR_NEUTRAL);
|
||||
// TODO 2.8.0: Set this back to neutral when object details are done
|
||||
$oPanel->SetColor(Panel::ENUM_COLOR_BLUE);
|
||||
|
||||
return $oPanel;
|
||||
}
|
||||
@@ -148,4 +149,21 @@ class PanelFactory
|
||||
|
||||
return $oPanel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a Panel component with the specific $sClass color scheme
|
||||
*
|
||||
* @param string $sClass Class of the object the panel is for
|
||||
* @param string $sTitle
|
||||
*
|
||||
* @return \Combodo\iTop\Application\UI\Component\Panel\Panel
|
||||
*/
|
||||
public static function MakeForClass(string $sClass, string $sTitle)
|
||||
{
|
||||
$oPanel = new Panel($sTitle);
|
||||
// TODO 2.8.0: Change this to clas color when done
|
||||
$oPanel->SetColor(Panel::ENUM_COLOR_BLUE);
|
||||
|
||||
return $oPanel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user