N°2847 - ActivityPanel: Rework for new UX in edition/creation

- Hide main action buttons
- Remove activity tab entry form
- Send caselogs value with global form
This commit is contained in:
Molkobain
2020-11-23 21:35:57 +01:00
parent 11b6429e3c
commit 8d19958d6d
5 changed files with 88 additions and 16 deletions

View File

@@ -82,12 +82,11 @@ class ActivityPanelFactory
}
}
//TODO 3.0.0: Check write rights
if($oActivityPanel->HasCaseLogTabs()) {
// Activity tab entry form is only in view mode
// As caselog tabs input will be attached to the main object form and submit button hidden, we can't have an entry form in the activity tab as it's not for a specific caselog
if($sMode === cmdbAbstractObject::ENUM_OBJECT_MODE_VIEW) {
$oActivityPanel->SetActivityTabEntryForm(CaseLogEntryFormFactory::MakeForActivityTab($oObject, $sMode));
}
$oActivityPanel->SetActivityTabEntryForm(CaseLogEntryFormFactory::MakeForActivityTab($oObject, $sMode));
// Retrieve history changes (including case logs entries)
// - Prepare query to retrieve changes