From 78a939d032394b012102d72cfb72997a3318225b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Jun 2011 14:29:05 +0000 Subject: [PATCH] New: Add help --- htdocs/langs/en_US/projects.lang | 1 + htdocs/langs/fr_FR/projects.lang | 1 + htdocs/projet/fiche.php | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang index fbc29c2e42b..0fc1d175c08 100755 --- a/htdocs/langs/en_US/projects.lang +++ b/htdocs/langs/en_US/projects.lang @@ -84,6 +84,7 @@ LinkedToAnotherCompany=Linked to other third party TaskIsNotAffectedToYou=Task not allocated to you ErrorTimeSpentIsEmpty=Time spent is empty ThisWillAlsoRemoveTasks=This action will also delete all tasks of project (%s tasks at the moment) and all inputs of time spent. +IfNeedToUseOhterObjectKeepEmpty=If some objects (invoice, order, ...), belonging to another third party, must be linked to the project to create, keep this empty to have the project being multi third parties. ##### Types de contacts ##### TypeContact_project_internal_PROJECTLEADER=Project leader TypeContact_project_external_PROJECTLEADER=Project leader diff --git a/htdocs/langs/fr_FR/projects.lang b/htdocs/langs/fr_FR/projects.lang index f547a466180..02fafee8ca2 100755 --- a/htdocs/langs/fr_FR/projects.lang +++ b/htdocs/langs/fr_FR/projects.lang @@ -84,6 +84,7 @@ LinkedToAnotherCompany=Liés à autre société TaskIsNotAffectedToYou=Tâche qui ne vous est pas affectée ErrorTimeSpentIsEmpty=Le temps consommé n'est pas renseigné ThisWillAlsoRemoveTasks=Cette opération détruira également les taches du projet (%s taches actuellement) et le suivi des consommés. +IfNeedToUseOhterObjectKeepEmpty=Si des objets (facture, commande, ...), appartenant à un autre tiers que celui choisi, doivent être liés au projet à créer, laisser vide afin de laisser le projet multi-tiers. ##### Types de contacts ##### TypeContact_project_internal_PROJECTLEADER=Chef de projet TypeContact_project_external_PROJECTLEADER=Chef de projet diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index 1f7d1e46eb7..3c1c0c69080 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -293,8 +293,10 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) print ''.$langs->trans("Label").''; // Customer - print ''.$langs->trans("Company").''; - print $html->select_societes(GETPOST("socid"),'socid','',1,1); + print ''.$langs->trans("ThirdParty").''; + $text=$html->select_company(GETPOST("socid"),'socid','',1,1); + $texthelp=$langs->trans("IfNeedToUseOhterObjectKeepEmpty"); + print $html->textwithtooltip($text.' '.img_help(),$texthelp,1); print ''; // Public