Skip to content
Snippets Groups Projects
Commit c197ce31 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

NEW Add the admin info on combo of type of contact

parent 972d95a3
No related branches found
No related tags found
No related merge requests found
...@@ -702,6 +702,8 @@ class FormCompany ...@@ -702,6 +702,8 @@ class FormCompany
*/ */
function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $sortorder='position', $showempty=0) 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')) if (is_object($object) && method_exists($object, 'liste_type_contact'))
{ {
$lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1); $lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1);
...@@ -713,7 +715,9 @@ class FormCompany ...@@ -713,7 +715,9 @@ class FormCompany
if ($key == $selected) print ' selected'; if ($key == $selected) print ' selected';
print '>'.$value.'</option>'; print '>'.$value.'</option>';
} }
print "</select>\n"; print "</select>";
if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print "\n";
} }
} }
......
...@@ -58,7 +58,7 @@ $userstatic=new User($db); ...@@ -58,7 +58,7 @@ $userstatic=new User($db);
<form class="tagtr liste_titre"> <form class="tagtr liste_titre">
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div> <div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div> <div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
<div class="tagtd"><?php echo $langs->trans("Contacts"); ?></div> <div class="tagtd"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
<div class="tagtd"><?php echo $langs->trans("ContactType"); ?></div> <div class="tagtd"><?php echo $langs->trans("ContactType"); ?></div>
<div class="tagtd">&nbsp;</div> <div class="tagtd">&nbsp;</div>
<div class="tagtd">&nbsp;</div> <div class="tagtd">&nbsp;</div>
...@@ -138,7 +138,7 @@ $userstatic=new User($db); ...@@ -138,7 +138,7 @@ $userstatic=new User($db);
<form class="tagtr liste_titre"> <form class="tagtr liste_titre">
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div> <div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div> <div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
<div class="tagtd"><?php echo $langs->trans("Contacts"); ?></div> <div class="tagtd"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
<div class="tagtd"><?php echo $langs->trans("ContactType"); ?></div> <div class="tagtd"><?php echo $langs->trans("ContactType"); ?></div>
<div class="tagtd" align="center"><?php echo $langs->trans("Status"); ?></div> <div class="tagtd" align="center"><?php echo $langs->trans("Status"); ?></div>
<div class="tagtd">&nbsp;</div> <div class="tagtd">&nbsp;</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment