diff --git a/doc/conf/LSobject/customActions.docbook b/doc/conf/LSobject/customActions.docbook index 6370a073..99264751 100644 --- a/doc/conf/LSobject/customActions.docbook +++ b/doc/conf/LSobject/customActions.docbook @@ -9,6 +9,7 @@ 'action1' => array( 'label' => '[label l'action]', 'hideLabel' => '[booléen]', + 'helpInfo' => '[label d'aide]', 'icon' => '[nom de l'icône de l'action]', 'function' => '[fonction à exécuter]', 'question_format' => '[LSformat de la question de confirmation]', @@ -42,6 +43,13 @@ + + helpInfo + + Le label du message d'aide qui sera affiché au survole du bouton de l'action. + + + icon diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index e9aa9a72..0a378a36 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -131,6 +131,7 @@ if (loadDir(LS_OBJECTS_DIR) && loadDir(LS_LOCAL_DIR.LS_OBJECTS_DIR)) { if (is_array($conf['customActions'])) { foreach($conf['customActions'] as $act) { add($act['label']); + add($act['helpInfo']); add($act['question_format']); add($act['onSuccessMsgFormat']); } diff --git a/public_html/templates/default/view.tpl b/public_html/templates/default/view.tpl index 70ee9521..f75952e7 100644 --- a/public_html/templates/default/view.tpl +++ b/public_html/templates/default/view.tpl @@ -4,7 +4,7 @@ diff --git a/public_html/view.php b/public_html/view.php index 7deeb9a5..803e4e84 100644 --- a/public_html/view.php +++ b/public_html/view.php @@ -70,6 +70,7 @@ if(LSsession :: startLSsession()) { $LSview_actions[] = array ( 'label' => ((isset($config['label']))?__($config['label']):__($name)), 'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False), + 'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False), 'url' => 'custom_action.php?LSobject='.$LSobject.'&dn='.urlencode($dn).'&customAction='.$name, 'action' => ((isset($config['icon']))?$config['icon']:'generate'), 'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'') @@ -167,6 +168,7 @@ if(LSsession :: startLSsession()) { $LSview_actions[] = array ( 'label' => ((isset($config['label']))?__($config['label']):__($name)), 'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False), + 'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False), 'url' => 'custom_search_action.php?LSobject='.$LSobject.'&customAction='.$name, 'action' => ((isset($config['icon']))?$config['icon']:'generate'), 'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'')