mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 04:58:46 +02:00
N°6154 N°6219 - Relations Read - tooltip, confirmation title and message (#486)
N°6154 - n:n Read - tooltip, confirmation title and message on Add-Edit-Remove N°6219 - 1:n Read: tooltip, modal title and message on Add-Edit-Remove-Delete
This commit is contained in:
@@ -11,6 +11,7 @@ use cmdbAbstractObject;
|
||||
use Combodo\iTop\Application\Helper\FormHelper;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Form\FormUIBlockFactory;
|
||||
use Combodo\iTop\Controller\AbstractController;
|
||||
use Combodo\iTop\Service\Links\LinkSetModel;
|
||||
use Combodo\iTop\Service\Router\Router;
|
||||
use Combodo\iTop\Service\Base\ObjectRepository;
|
||||
use Exception;
|
||||
@@ -198,17 +199,30 @@ class LinkSetController extends AbstractController
|
||||
}
|
||||
});
|
||||
}
|
||||
JS
|
||||
;
|
||||
JS;
|
||||
|
||||
|
||||
// Form title
|
||||
/** @var \AttributeLinkedSet $oLinksetDef */
|
||||
$oLinksetDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
||||
$oHostObj = MetaModel::GetObject($sClass, $sId);
|
||||
$sFormTitle = $oLinksetDef->SearchSpecificLabel('UI:Links:Add:Modal:Title', '', true,
|
||||
$sClass,
|
||||
$oHostObj->Get('friendlyname'),
|
||||
$oLinksetDef->GetLabel(),
|
||||
LinkSetModel::GetTargetClass($oLinksetDef));
|
||||
|
||||
$aExtraParams = [
|
||||
'noRelations' => true,
|
||||
'hide_transitions' => true,
|
||||
'formPrefix' => $sAttCode,
|
||||
'fieldsFlags' => $aFieldFlags,
|
||||
'noRelations' => true,
|
||||
'hide_transitions' => true,
|
||||
'formPrefix' => $sAttCode,
|
||||
'fieldsFlags' => $aFieldFlags,
|
||||
'forceFieldsSubmission' => [
|
||||
$sExtKeyToMe
|
||||
$sExtKeyToMe,
|
||||
],
|
||||
'js_handlers' => [
|
||||
'form_title' => $sFormTitle,
|
||||
'custom_button' => \Dict::S('UI:Button:Add'),
|
||||
'js_handlers' => [
|
||||
'form_on_submit' => $sFormOnSubmitJsCode,
|
||||
'cancel_button_on_click' =>
|
||||
<<<JS
|
||||
|
||||
Reference in New Issue
Block a user