N°2847 Replace Notifications page header by an Alert block

This commit is contained in:
Stephen Abello
2020-12-02 11:02:07 +01:00
parent 59f9cd3694
commit f28fc15a8d
16 changed files with 23 additions and 30 deletions

View File

@@ -956,7 +956,7 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array(
'Menu:NotificationsMenu' => 'Upozornění', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Konfigurace upozornění', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Konfigurace <span class="hilite">upozornění</span>',
'UI:NotificationsMenu:Title' => 'Konfigurace upozornění',
'UI:NotificationsMenu:Help' => 'Nápověda',
'UI:NotificationsMenu:HelpContent' => '<p>Upozornění v iTop jsou plně nastavitelné. Jsou založena na dvou druzích objektů: <i>triggery (spouštěče) a akce</i>.</p>
<p><i><b>Triggers</b></i> define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:

View File

@@ -943,7 +943,7 @@ Dict::Add('DA DA', 'Danish', 'Dansk', array(
'Menu:NotificationsMenu' => 'Notifikationer', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => '', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Konfiguration af <span class="hilite">Notifikationer</span>~~',
'UI:NotificationsMenu:Title' => 'Konfiguration af Notifikationer~~',
'UI:NotificationsMenu:Help' => 'Hjælp',
'UI:NotificationsMenu:HelpContent' => '<p>I iTop er notifikationer fuldt modificerbare. De er baseret på to sæt af objekter: <i>triggers og handlinger</i>.</p>
<p><i><b>Triggers</b></i> define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:

View File

@@ -942,7 +942,7 @@ Dict::Add('DE DE', 'German', 'Deutsch', array(
'Menu:NotificationsMenu' => 'Benachrichtigungen', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Einstellungen der Benachrichtigungen', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Einstellungen der <span class="hilite">Benachrichtigungen</span>',
'UI:NotificationsMenu:Title' => 'Einstellungen der Benachrichtigungen',
'UI:NotificationsMenu:Help' => 'Hilfe',
'UI:NotificationsMenu:HelpContent' => '<p>In iTop sind Benachrichtigungen vollständig anpassbar. Sie basieren auf zwei Gruppen an Objekten: <i>Trigger und Aktionen</i>.</p>
<p><i><b>Trigger</b></i> definieren, wann eine Benachrichtigung ausgeführt wird. Es gibt verschiedene Auslöser als Teil des iTop-Kerns, aber andere können durch Erweiterungen eingebracht werden:

View File

@@ -967,7 +967,7 @@ Dict::Add('EN US', 'English', 'English', array(
'Menu:NotificationsMenu' => 'Notifications', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Configuration of the Notifications', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Configuration of the <span class="hilite">Notifications</span>',
'UI:NotificationsMenu:Title' => 'Configuration of the Notifications',
'UI:NotificationsMenu:Help' => 'Help',
'UI:NotificationsMenu:HelpContent' => '<p>In '.ITOP_APPLICATION_SHORT.' the notifications are fully customizable. They are based on two sets of objects: <i>triggers and actions</i>.</p>
<p><i><b>Triggers</b></i> define when a notification will be executed. There are different triggers as part of '.ITOP_APPLICATION_SHORT.' core, but others can be brought by extensions:

View File

@@ -954,7 +954,7 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellaño', array(
'Menu:NotificationsMenu' => 'Notificaciones', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Configuración de las Notificaciones', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Configuración de las <span class="hilite">Notificaciones</span>',
'UI:NotificationsMenu:Title' => 'Configuración de las Notificaciones',
'UI:NotificationsMenu:Help' => 'Ayuda',
'UI:NotificationsMenu:HelpContent' => '<p>En iTop las notificaciones son completamente personalizables. Están basadas en dos conjuntos de objetos: <i>Disparadores y Acciones</i>.</p>
<p>Los <i><b>disparadores</b></i> definen cuando una notificación debe ser ejecutada. Existen 3 tipos de disparadores para cubrir las 3 diferentes fases del ciclo de vida de un objeto:

View File

@@ -946,7 +946,7 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Menu:NotificationsMenu' => 'Notifications', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Configuration des Notifications', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Configuration des <span class="hilite">Notifications</span>',
'UI:NotificationsMenu:Title' => 'Configuration des Notifications',
'UI:NotificationsMenu:Help' => 'Aide',
'UI:NotificationsMenu:HelpContent' => '<p>Dans iTop les notifications sont totalement configurables. Elles sont basées sur deux types d\'objets: <i>déclencheurs et actions</i>.</p>
<p><i><b>Les déclencheurs</b></i> définissent quand une notification sera exécutée. Il y a différents déclencheurs qui font partie du noyau d\'iTop, mais d\'autres peuvent être apportés par des extensions :

View File

@@ -941,7 +941,7 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', array(
'Menu:NotificationsMenu' => 'Értesítések', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => '', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => '<span class="hilite">Értesítések</span> beállítása',
'UI:NotificationsMenu:Title' => 'Értesítések beállítása',
'UI:NotificationsMenu:Help' => 'Segítség',
'UI:NotificationsMenu:HelpContent' => '<p>Az iTop alkalmazásban az értesítések teljesen testreszabhatók. Értesítések az objektumok két csoportjára épülnek: <i>kiváltó okok és akciók</i>.</p>
<p><i><b>Triggers</b></i> define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:

View File

@@ -954,7 +954,7 @@ Dict::Add('IT IT', 'Italian', 'Italiano', array(
'Menu:NotificationsMenu' => 'Notifiche', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => '', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Configurazione delle <span class="hilite">Notifiche</span>',
'UI:NotificationsMenu:Title' => 'Configurazione delle Notifiche',
'UI:NotificationsMenu:Help' => 'Aiuto',
'UI:NotificationsMenu:HelpContent' => '<p>In iTop le notifiche sono completamente personalizzabili. Essi si basano su due serie di oggetti: <i>trigger e azioni</i>.</p>
<p><i>I <b>trigger</b></i> definiscono quando verrà eseguita una notifica. Ci sono diversi trigger come parte del nucleo di iTop, ma altri possono essere portati da estensioni:

View File

@@ -941,7 +941,7 @@ Dict::Add('JA JP', 'Japanese', '日本語', array(
'Menu:NotificationsMenu' => '通知', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => '通知の設定', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => '<span class="hilite">通知</span>の設定',
'UI:NotificationsMenu:Title' => '通知の設定',
'UI:NotificationsMenu:Help' => 'ヘルプ',
'UI:NotificationsMenu:HelpContent' => '<p>iTopでは、通知はすべてカスタマイズが可能です。通知は<i>トリガーとアクション</i>という二つのオブジェクトがベースになっています。
<p><i><b>Triggers</b></i> define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:

View File

@@ -961,7 +961,7 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', array(
'Menu:NotificationsMenu' => 'Meldingen', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Configuratie van de meldingen', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Configuratie van <span class="hilite">Meldingen</span>',
'UI:NotificationsMenu:Title' => 'Configuratie van Meldingen',
'UI:NotificationsMenu:Help' => 'Help',
'UI:NotificationsMenu:HelpContent' => '<p>In '.ITOP_APPLICATION_SHORT.' zijn de meldingen volledig aan te passen. Ze zijn gebaseerd op twee sets van objecten: <i>triggers and actions</i>.</p>
<p><i><b>Triggers</b></i> bepalen wanneer er een melding is. Er zijn verschillende triggers als onderdeel van '.ITOP_APPLICATION_SHORT.' core, maar andere kunnen door middel van uitbreidingen worden toegevoegd.

View File

@@ -954,7 +954,7 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', array(
'Menu:NotificationsMenu' => 'Notificações', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Configuração de Notificações', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Configuração de <span class="hilite">Notificações</span>',
'UI:NotificationsMenu:Title' => 'Configuração de Notificações',
'UI:NotificationsMenu:Help' => 'Ajuda',
'UI:NotificationsMenu:HelpContent' => '<p>As Notificações são totalmente personalizáveis. Elas são baseadas em dois conjuntos de objetos: <i>Gatilhos e Ações</i>.</p>
<p><i><b>Gatilhos</b></i> define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:

View File

@@ -933,7 +933,7 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(
'Menu:NotificationsMenu' => 'Уведомления', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Конфигурация уведомлений', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Конфигурация <span class="hilite">Уведомлений</span>',
'UI:NotificationsMenu:Title' => 'Конфигурация Уведомлений',
'UI:NotificationsMenu:Help' => 'Помощь',
'UI:NotificationsMenu:HelpContent' => '<p>В iTop полностью настраиваемые уведомления, которые основаны на двух наборах объектов: <i>триггерах и действиях</i>.</p>
<p><i><b>Триггеры</b></i> определяют, когда необходимо выполнить действия. Базовые триггеры доступны как часть ядра iTop, другие триггеры добавляются дополнительными расширениями:

View File

@@ -941,7 +941,7 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', array(
'Menu:NotificationsMenu' => 'Upozornenia', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => '', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => 'Konfigurácia <span class="hilite">Upozornení</span>',
'UI:NotificationsMenu:Title' => 'Konfigurácia Upozornení',
'UI:NotificationsMenu:Help' => 'Pomoc',
'UI:NotificationsMenu:HelpContent' => '<p>In iTop upozornenia sú plne upraviteľné. Sú založené na dvoch setoch objektov: <i>spúštače a akcie</i>.</p>
<p><i><b>Spúštače</b></i> definujte bude spustené nejaké upozornenie. Máme 5 typov spúštačov pre pokrytie 3 rôznych fáz životného cyklu objektu:

View File

@@ -955,7 +955,7 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', array(
'Menu:NotificationsMenu' => 'Uyarılar', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => 'Uyarıların yapılandırılması', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => '<span class="hilite">Uyarıların</span> yapılandırılması',
'UI:NotificationsMenu:Title' => 'Uyarıların yapılandırılması',
'UI:NotificationsMenu:Help' => 'Yardım',
'UI:NotificationsMenu:HelpContent' => '<p>In iTop uyarı mekanizması ihtiyaca göre uyarlanabilir. Uyarılar iki tip nesne üzerine kurulmuştur: <i>tetikleme (triggers) ve işlemler (actions)</i>.</p>
<p><i><b>Triggers</b></i> define when a notification will be executed. There are different triggers as part of iTop core, but others can be brought by extensions:

View File

@@ -954,7 +954,7 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array(
'Menu:NotificationsMenu' => '通知', // Duplicated into itop-welcome-itil (will be removed from here...)
'Menu:NotificationsMenu+' => '通知的配置', // Duplicated into itop-welcome-itil (will be removed from here...)
'UI:NotificationsMenu:Title' => '配置 <span class="hilite">通知</span>',
'UI:NotificationsMenu:Title' => '配置 通知',
'UI:NotificationsMenu:Help' => '帮助',
'UI:NotificationsMenu:HelpContent' => '<p>在iTop 中, 通知可以被自定义. 它们是基于两个对象集: <i>触发器和操作</i>.</p>
<p><i><b>触发器</b></i> 定义了什么时候发送通知. iTop core 自带一些触发器, 另一些触发器可由扩展提供:

View File

@@ -17,6 +17,9 @@
* You should have received a copy of the GNU Affero General Public License
*/
use Combodo\iTop\Application\UI\Component\Alert\AlertFactory;
use Combodo\iTop\Application\UI\Layout\PageContent\PageContentFactory;
require_once('../approot.inc.php');
require_once(APPROOT.'/application/application.inc.php');
@@ -28,24 +31,14 @@ ApplicationMenu::CheckMenuIdEnabled("NotificationsMenu");
// Main program
//
$oP = new iTopWebPage(Dict::S('Menu:NotificationsMenu+'));
$oP->add('<div class="page_header" style="padding:0.5em;">');
$oP->add('<h1>'.dict::S('UI:NotificationsMenu:Title').'</h1>');
$oP->add('</div>');
$oP->SetBreadCrumbEntry('ui-tool-notifications', Dict::S('Menu:NotificationsMenu'), Dict::S('Menu:NotificationsMenu+'), '', 'fas fa-bell', iTopWebPage::ENUM_BREADCRUMB_ENTRY_ICON_TYPE_CSS_CLASSES);
$oP->StartCollapsibleSection(Dict::S('UI:NotificationsMenu:Help'), true, 'notifications-home');
$oP->add('<div style="padding: 1em; font-size:10pt;background:#E8F3CF;margin-top: 0.25em;">');
$oP->add('<img src="../images/bell.png" style="margin-top: -60px; margin-right: 10px; float: right;">');
$oP->add(Dict::S('UI:NotificationsMenu:HelpContent'));
$oP->add('</div>');
$oP->add('');
$oP->add('');
$oP->EndCollapsibleSection();
$oP->add('<p>&nbsp;</p>');
$oPageContentLayout = PageContentFactory::MakeStandardEmpty();
$oP->SetContentLayout($oPageContentLayout);
$sAlertTitle = Dict::S('UI:NotificationsMenu:Title');
$sAlertContent = Dict::S('UI:NotificationsMenu:HelpContent');
$oPageContentLayout->AddMainBlock(AlertFactory::MakeForInformation($sAlertTitle, $sAlertContent));
$oP->AddTabContainer('Tabs_0');
$oP->SetCurrentTabContainer('Tabs_0');