mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Adv. Search hints: Remove markup from dict files and display hint message in a tooltip
This commit is contained in:
@@ -26,6 +26,9 @@ $ibo-search-form-panel--items--hover--color: $ibo-color-grey-200 !default;
|
||||
|
||||
$ibo-search-form-panel--multiple-choice--hover--color: $ibo-color-grey-200 !default;
|
||||
|
||||
$ibo-search-form-panel--hint--margin-left: $ibo-spacing-300 !default;
|
||||
$ibo-search-form-panel--hint--color: $ibo-color-grey-800 !default;
|
||||
|
||||
$ibo-search-form-panel--misc-button--background-color: $ibo-search-form-panel--more-criteria--background-color !default;
|
||||
$ibo-search-form-panel--misc-button--icon--color: $ibo-search-form-panel--more-criteria--icon--color !default;
|
||||
|
||||
@@ -70,11 +73,6 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sft_hint,
|
||||
.sfobs_hint,
|
||||
.sft_toggler {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.sft_toggler {
|
||||
transform: rotateX(180deg);
|
||||
@@ -848,6 +846,12 @@ $ibo-search-results-area--datatable-scrollhead--border--is-sticking: $ibo-search
|
||||
}
|
||||
}
|
||||
|
||||
.sft_hint,
|
||||
.sfobs_hint,
|
||||
.sft_toggler {
|
||||
margin-left: $ibo-search-form-panel--hint--margin-left;
|
||||
color: $ibo-search-form-panel--hint--color;
|
||||
}
|
||||
|
||||
.sf_results_placeholder {
|
||||
@extend %ibo-font-size-150;
|
||||
|
||||
@@ -1478,7 +1478,7 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', array(
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1469,7 +1469,7 @@ Ved tilknytningen til en trigger, bliver hver handling tildelt et "rækkefølge"
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1468,7 +1468,7 @@ Wenn Aktionen mit Trigger verknüpft sind, bekommt jede Aktion eine Auftragsnumm
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Ein-/Ausklappen',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Automatische Eingabe für diese Klasse deaktiviert',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Obsolete Daten werden wegen ihrer Einstellung nicht angezeigt',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Obsolete Daten werden wegen ihrer Einstellung nicht angezeigt',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Fügen Sie ein Kriterium in das Suchfeld ein oder klicken Sie auf die Suchschaltfläche, um die Objekte anzuzeigen.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Kriterium hinzufügen',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1493,8 +1493,8 @@ When associated with a trigger, each action is given an "order" number, specifyi
|
||||
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => '<i class="fas fa-sync-alt fa-1x"></i> Auto submit has been disabled for this class',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1484,7 +1484,7 @@ Cuando se asocien con un disparador, cada acción recibe un número de "orden",
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimizar/ Expandir',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto enviar ha sido deshabilitado para esta clase',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Basado en sus preferencias, datos obsoletos están ocultos',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Basado en sus preferencias, datos obsoletos están ocultos',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Agregue algún criterio en el cuadro de búsqueda o haga click en el botón de búsqueda para ver los objetos.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Agregar nuevo criterio',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1475,8 +1475,8 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé
|
||||
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Réduire / Ouvrir',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => '<i class="fas fa-sync-alt fa-1x"></i> La soumission automatique a été desactivée pour cette classe',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Conformément à vos préférences utilisateur, vous ne voyez pas les données obsolètes',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'La soumission automatique a été desactivée pour cette classe',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Conformément à vos préférences utilisateur, vous ne voyez pas les données obsolètes',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Ajoutez des critères dans le formulaire de recherche ou cliquez sur le bouton rechercher pour voir les objets.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Ajouter un critère',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1469,7 +1469,7 @@ Akció kiváltó okhoz rendelésekor kap egy sorszámot , amely meghatározza az
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1480,7 +1480,7 @@ Quando è associata a un trigger, ad ogni azione è assegnato un numero "ordine"
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1469,7 +1469,7 @@ Dict::Add('JA JP', 'Japanese', '日本語', array(
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1483,7 +1483,7 @@ Bij die koppeling wordt aan elke actie een volgorde-nummer gegeven. Dit bepaalt
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Inklappen / uitklappen',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Direct zoeken werd uitgeschakeld voor deze klasse.',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Door jouw voorkeuren worden objecten met status "buiten dienst" verborgen',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Door jouw voorkeuren worden objecten met status "buiten dienst" verborgen',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Voeg enkele criteria toe in het zoekveld of klik op de zoekknop om objecten te zien.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Voeg nieuw criterium toe',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1474,8 +1474,8 @@ W przypadku powiązania z wyzwalaczem, każde działanie otrzymuje numer "porzą
|
||||
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Zwiń / Rozwiń',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => '<i class="fas fa-sync-alt fa-1x"></i> Automatyczne przesyłanie zostało wyłączone dla tej klasy',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> W oparciu o Twoje preferencje wycofane dane są ukrywane',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Automatyczne przesyłanie zostało wyłączone dla tej klasy',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'W oparciu o Twoje preferencje wycofane dane są ukrywane',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Dodaj jakieś kryterium w polu wyszukiwania lub kliknij przycisk wyszukiwania, aby wyświetlić obiekty.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Dodaj nowe kryteria',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1480,7 +1480,7 @@ When associated with a trigger, each action is given an "order" number, specifyi
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimizar / Expandir',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'O envio automático foi desativado para esta classe',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Baseado nas suas preferências, dados obsoletos estão escondidos',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Baseado nas suas preferências, dados obsoletos estão escondidos',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Adicione algum critério na caixa de pesquisa ou clique no botão de pesquisa para visualizar os objetos.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Adicionar novos critérios',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1487,7 +1487,7 @@ Dict::Add('RU RU', 'Russian', 'Русский', array(
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Развернуть / Свернуть',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Автоматический запуск поиска отключен для данного класса',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Устаревшие данные скрыты в соответствии с вашими предпочтениями',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Устаревшие данные скрыты в соответствии с вашими предпочтениями',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Добавьте критерии поиска или нажмите кнопку поиска, чтобы просмотреть объекты.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Добавить критерий',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1472,7 +1472,7 @@ Keď sú priradené spúštačom, každej akcii je dané číslo "príkazu", šp
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1480,7 +1480,7 @@ Tetikleme gerçekleştiriğinde işlemler tanımlanan sıra numarası ile gerçe
|
||||
// Search form
|
||||
'UI:Search:Toggle' => 'Minimize / Expand~~',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => 'Auto submit has been disabled for this class~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:Obsolescence:DisabledHint' => 'Based on your preferences, obsolete data are hidden~~',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => 'Add some criterion on the search box or click the search button to view the objects.~~',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => 'Add new criteria~~',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -1480,7 +1480,7 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', array(
|
||||
// Search form
|
||||
'UI:Search:Toggle' => '折叠 / 展开',
|
||||
'UI:Search:AutoSubmit:DisabledHint' => '该类别已禁用自动提交',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '<span class="fas fa-eye-slash fa-1x"></span> 根据您的设置, 废弃的数据会被隐藏',
|
||||
'UI:Search:Obsolescence:DisabledHint' => '根据您的设置, 废弃的数据会被隐藏',
|
||||
'UI:Search:NoAutoSubmit:ExplainText' => '在搜索框中添加规则,或者单击对象按钮查看对象.',
|
||||
'UI:Search:Criterion:MoreMenu:AddCriteria' => '添加条件',
|
||||
// - Add new criteria button
|
||||
|
||||
@@ -182,12 +182,14 @@ class SearchForm
|
||||
$oUiBlock->AddSubBlock($oUiSearchBlock);
|
||||
$sHtml = "";
|
||||
if (!$bShowObsoleteData) {
|
||||
$sShowObsoleteLabel = Dict::S('UI:Search:Obsolescence:DisabledHint');
|
||||
$sHtml .= "<span class=\"pull-right\">";
|
||||
$sHtml .= "<span class=\"sfobs_hint pull-right\">".Dict::S('UI:Search:Obsolescence:DisabledHint')."</span>";
|
||||
$sHtml .= "<span class=\"sfobs_hint pull-right\"><span class=\"fas fa-eye-slash fa-1x\" aria-label=\"$sShowObsoleteLabel\" data-tooltip-content=\"$sShowObsoleteLabel\"></span></span>";
|
||||
}
|
||||
if ($bAutoSubmit === false) {
|
||||
$sHtml .= "<br class='clearboth' />";
|
||||
$sHtml .= "<span class=\"sft_hint pull-right\">".Dict::S('UI:Search:AutoSubmit:DisabledHint')."</span>";
|
||||
$sAutoSubmit = Dict::S('UI:Search:AutoSubmit:DisabledHint');
|
||||
$sHtml .= "<span class=\"sft_hint pull-right\"><span class=\"fa-stack fa-fw\" aria-label=\"$sAutoSubmit\" data-tooltip-content=\"$sAutoSubmit\"><span class=\"fas fa-sync-alt fa-stack-1x\"></span><span class=\"fas fa-slash fa-stack-1x\"></span
|
||||
></span></span>";
|
||||
$sHtml .= "</span>";
|
||||
}
|
||||
$sHtml .= "<br class='clearboth' />";
|
||||
|
||||
Reference in New Issue
Block a user