mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°2847 - ActivityPanel: Rework for new UX
- Add MetaModel::GetCaseLogs($sClass) function - Rename ActivityNewEntryForm to CaseLogEntryForm - Rework ActivityPanel and CaseLogEntryForm markup / CSS - Change for 1 CaseLogEntryForm per tab (caselogs and activity) with specific "Add entry..." choices
This commit is contained in:
@@ -244,27 +244,4 @@ class PopoverMenuFactory
|
||||
return $oMenu;
|
||||
}
|
||||
|
||||
public static function MakeMenuForActivityNewEntryFormSubmit(array $aCaseLogs): PopoverMenu
|
||||
{
|
||||
$oMenu = new PopoverMenu();
|
||||
$sMenuId = $oMenu->GetId();
|
||||
|
||||
$aItems = [];
|
||||
foreach ($aCaseLogs as $sCaseLogAttCode => $sCaseLogLabel) {
|
||||
// JS
|
||||
$aItems[] = PopoverMenuItemFactory::MakeFromApplicationPopupMenuItem(
|
||||
new JSPopupMenuItem(
|
||||
$sCaseLogAttCode,
|
||||
$sCaseLogLabel,
|
||||
<<<JS
|
||||
$(this).parents('[data-role="ibo-activity-new-entry-form--action-buttons--right-actions"]').trigger('submit', ['caselog', '$sCaseLogAttCode']);
|
||||
JS
|
||||
));
|
||||
}
|
||||
|
||||
$oMenu->AddSection('ibo-activity-new-entry-new-entry--submit--caselogs')
|
||||
->SetItems('ibo-activity-new-entry-new-entry--submit--caselogs', $aItems);
|
||||
|
||||
return $oMenu;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user