From c197ce31b635ba4c2cded2559ec94205dc364f8e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 29 Feb 2016 13:24:59 +0100 Subject: [PATCH] NEW Add the admin info on combo of type of contact --- htdocs/core/class/html.formcompany.class.php | 6 +++++- htdocs/core/tpl/contacts.tpl.php | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index 13525305265..9091b4aead0 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -702,6 +702,8 @@ class FormCompany */ function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $sortorder='position', $showempty=0) { + global $user, $langs; + if (is_object($object) && method_exists($object, 'liste_type_contact')) { $lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1); @@ -713,7 +715,9 @@ class FormCompany if ($key == $selected) print ' selected'; print '>'.$value.''; } - print "\n"; + print ""; + if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1); + print "\n"; } } diff --git a/htdocs/core/tpl/contacts.tpl.php b/htdocs/core/tpl/contacts.tpl.php index 665768dbef4..88169314211 100644 --- a/htdocs/core/tpl/contacts.tpl.php +++ b/htdocs/core/tpl/contacts.tpl.php @@ -58,7 +58,7 @@ $userstatic=new User($db);
trans("Nature"); ?>
trans("ThirdParty"); ?>
-
trans("Contacts"); ?>
+
trans("Users").'/'.$langs->trans("Contacts"); ?>
trans("ContactType"); ?>
 
 
@@ -138,7 +138,7 @@ $userstatic=new User($db);
trans("Nature"); ?>
trans("ThirdParty"); ?>
-
trans("Contacts"); ?>
+
trans("Users").'/'.$langs->trans("Contacts"); ?>
trans("ContactType"); ?>
trans("Status"); ?>