mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3739 - Change dashboard menu entries
This commit is contained in:
@@ -1091,20 +1091,17 @@ JS
|
||||
$aActions = array();
|
||||
$sFile = addslashes($this->sDefinitionFile);
|
||||
$sJSExtraParams = json_encode($aExtraParams);
|
||||
$bCanEdit = true;
|
||||
if ($this->HasCustomDashboard()) {
|
||||
$bCanEdit = !appUserPreferences::GetPref('display_original_dashboard_'.$this->GetId(), false);
|
||||
}
|
||||
if ($bCanEdit) {
|
||||
$oEdit = new JSPopupMenuItem('UI:Dashboard:Edit', Dict::S('UI:Dashboard:Edit'), "return EditDashboard('{$this->sId}', '$sFile', $sJSExtraParams)");
|
||||
$oEdit = new JSPopupMenuItem('UI:Dashboard:Edit', Dict::S('UI:Dashboard:EditCustom'), "return EditDashboard('{$this->sId}', '$sFile', $sJSExtraParams)");
|
||||
$aActions[$oEdit->GetUID()] = $oEdit->GetMenuItem();
|
||||
$oRevert = new JSPopupMenuItem('UI:Dashboard:RevertConfirm', Dict::S('UI:Dashboard:DeleteCustom'),
|
||||
"if (confirm('".addslashes(Dict::S('UI:Dashboard:RevertConfirm'))."')) return RevertDashboard('{$this->sId}', $sJSExtraParams); else return false");
|
||||
$aActions[$oRevert->GetUID()] = $oRevert->GetMenuItem();
|
||||
} else {
|
||||
$oEdit = new JSPopupMenuItem('UI:Dashboard:Edit', Dict::S('UI:Dashboard:CreateCustom'), "return EditDashboard('{$this->sId}', '$sFile', $sJSExtraParams)");
|
||||
$aActions[$oEdit->GetUID()] = $oEdit->GetMenuItem();
|
||||
}
|
||||
|
||||
if ($this->bCustomized) {
|
||||
$oRevert = new JSPopupMenuItem('UI:Dashboard:RevertConfirm', Dict::S('UI:Dashboard:Revert'),
|
||||
"if (confirm('".addslashes(Dict::S('UI:Dashboard:RevertConfirm'))."')) return RevertDashboard('{$this->sId}', $sJSExtraParams); else return false");
|
||||
$aActions[$oRevert->GetUID()] = $oRevert->GetMenuItem();
|
||||
}
|
||||
|
||||
utils::GetPopupMenuItems($oPage, iPopupMenuExtension::MENU_DASHBOARD_ACTIONS, $this, $aActions);
|
||||
|
||||
|
||||
@@ -1197,8 +1197,9 @@ When associated with a trigger, each action is given an "order" number, specifyi
|
||||
'UI:OQL:UnknownClassAndFix' => 'Unknown class "%1$s". You may try "%2$s" instead.',
|
||||
'UI:OQL:UnknownClassNoFix' => 'Unknown class "%1$s"',
|
||||
|
||||
'UI:Dashboard:Edit' => 'Edit This Page...',
|
||||
'UI:Dashboard:Revert' => 'Revert To Original Version...',
|
||||
'UI:Dashboard:EditCustom' => 'Edit custom version...',
|
||||
'UI:Dashboard:CreateCustom' => 'Create a custom version...',
|
||||
'UI:Dashboard:DeleteCustom' => 'Delete custom version...',
|
||||
'UI:Dashboard:RevertConfirm' => 'Every changes made to the original version will be lost. Please confirm that you want to do this.',
|
||||
'UI:ExportDashBoard' => 'Export to a file',
|
||||
'UI:ImportDashBoard' => 'Import from a file...',
|
||||
|
||||
@@ -1175,8 +1175,9 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé
|
||||
'UI:OQL:UnknownClassAndFix' => 'La classe "%1$s" est inconnue. Essayez plutôt "%2$s".',
|
||||
'UI:OQL:UnknownClassNoFix' => 'La classe "%1$s" est inconnue',
|
||||
|
||||
'UI:Dashboard:Edit' => 'Editer cette page...',
|
||||
'UI:Dashboard:Revert' => 'Revenir à la version d\'origine...',
|
||||
'UI:Dashboard:CreateCustom' => 'Créer une version modifiée...',
|
||||
'UI:Dashboard:EditCustom' => 'Éditer la version modifiée...',
|
||||
'UI:Dashboard:DeleteCustom' => 'Supprimer la version modifiée...',
|
||||
'UI:Dashboard:RevertConfirm' => 'Toutes modifications apportées à la version d\'origine seront perdues. Veuillez confirmer l\'opération.',
|
||||
'UI:ExportDashBoard' => 'Exporter dans un fichier',
|
||||
'UI:ImportDashBoard' => 'Importer depuis un fichier...',
|
||||
@@ -1189,7 +1190,7 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé
|
||||
'UI:DashletCreation:DashletType' => 'Type d\'Indicateur',
|
||||
'UI:DashletCreation:EditNow' => 'Modifier le tableau de bord',
|
||||
|
||||
'UI:DashboardEdit:Title' => 'Editeur de tableau de bord',
|
||||
'UI:DashboardEdit:Title' => 'Éditeur de tableau de bord',
|
||||
'UI:DashboardEdit:DashboardTitle' => 'Titre',
|
||||
'UI:DashboardEdit:AutoReload' => 'Réactualisation automatique',
|
||||
'UI:DashboardEdit:AutoReloadSec' => 'Réactualisation toutes les (secondes)',
|
||||
|
||||
Reference in New Issue
Block a user