Add contact on job page
This commit is contained in:
parent
7149cbb532
commit
04903460b1
@ -3012,7 +3012,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
||||
'1downarrow', '1uparrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected',
|
||||
'accountancy', 'address', 'bank_account', 'barcode', 'bank', 'bill', 'bookmark', 'bom', 'building',
|
||||
'cash-register', 'category', 'check', 'clock', 'close_title', 'company', 'contact', 'contract', 'cubes',
|
||||
'delete', 'dolly', 'dollyrevert', 'edit', 'ellipsis-h', 'external-link-alt', 'external-link-square-alt',
|
||||
'delete', 'dolly', 'dollyrevert', 'edit', 'ellipsis-h', 'email', 'external-link-alt', 'external-link-square-alt',
|
||||
'filter', 'file-code', 'file-export', 'file-import', 'file-upload', 'folder', 'folder-open', 'globe', 'globe-americas', 'grip', 'grip_title', 'help',
|
||||
'intervention', 'label', 'language', 'list', 'listlight', 'lot',
|
||||
'map-marker-alt', 'money-bill-alt', 'mrp', 'note',
|
||||
|
||||
@ -51,4 +51,5 @@ ListOfPositionsToBeFilled=List of job offers to be filled
|
||||
NewPositionToBeFilled=New job offers to be filled
|
||||
|
||||
JobOfferToBeFilled=Job offer to be filled
|
||||
ThisIsInformationOnJobPosition=Information of the job position to be filled
|
||||
ThisIsInformationOnJobPosition=Information of the job position to be filled
|
||||
ContactForRecruitment=Contact for recruitment
|
||||
@ -250,12 +250,10 @@ $found = true;
|
||||
print '<br>';
|
||||
|
||||
// Label
|
||||
|
||||
print $langs->trans("Label").' : ';
|
||||
print '<b>'.$object->label.'</b><br>';
|
||||
|
||||
// Date
|
||||
|
||||
print $langs->trans("DateExpected").' : ';
|
||||
print '<b>';
|
||||
if ($object->date_planned > $now) {
|
||||
@ -265,6 +263,21 @@ if ($object->date_planned > $now) {
|
||||
}
|
||||
print '</b><br>';
|
||||
|
||||
// Contact
|
||||
print $langs->trans("ContactForRecruitment").' : ';
|
||||
$tmpuser = new User($db);
|
||||
$tmpuser->fetch($object->fk_user_recruiter);
|
||||
print '<b>';
|
||||
print $tmpuser->getFullName(-1);
|
||||
$emailforcontact = $tmpuser->email;
|
||||
if (empty($emailforcontact)) {
|
||||
$emailforcontact = $mysoc->email;
|
||||
}
|
||||
print ' - '.img_picto('', 'email', 'class="paddingrightonly"').dol_print_email($emailforcontact);
|
||||
print '</b>';
|
||||
print '</b><br>';
|
||||
|
||||
|
||||
print '<br>';
|
||||
|
||||
// Description
|
||||
|
||||
@ -99,7 +99,7 @@ class RecruitmentJobPosition extends CommonObject
|
||||
'label' => array('type'=>'varchar(255)', 'label'=>'JobLabel', 'enabled'=>'1', 'position'=>30, 'notnull'=>1, 'visible'=>1, 'searchall'=>1, 'css'=>'minwidth500', 'showoncombobox'=>'1', 'autofocusoncreate'=>1),
|
||||
'qty' => array('type'=>'integer', 'label'=>'NbOfEmployeesExpected', 'enabled'=>'1', 'position'=>45, 'notnull'=>1, 'visible'=>1, 'default'=>'1', 'isameasure'=>'1', 'css'=>'maxwidth75imp',),
|
||||
'fk_project' => array('type'=>'integer:Project:projet/class/project.class.php:1', 'label'=>'Project', 'enabled'=>'1', 'position'=>52, 'notnull'=>-1, 'visible'=>-1, 'index'=>1,),
|
||||
'fk_user_recruiter' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'ResponsibleOfRecruitement', 'enabled'=>'1', 'position'=>54, 'notnull'=>0, 'visible'=>-1, 'foreignkey'=>'user.rowid',),
|
||||
'fk_user_recruiter' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'ResponsibleOfRecruitement', 'enabled'=>'1', 'position'=>54, 'notnull'=>1, 'visible'=>-1, 'foreignkey'=>'user.rowid',),
|
||||
'fk_user_supervisor' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'FutureManager', 'enabled'=>'1', 'position'=>55, 'notnull'=>0, 'visible'=>-1, 'foreignkey'=>'user.rowid',),
|
||||
'fk_establishment' => array('type'=>'integer:Establishment:hrm/class/establishment.class.php', 'label'=>'Establishment', 'enabled'=>'$conf->hrm->enabled', 'position'=>56, 'notnull'=>0, 'visible'=>-1, 'foreignkey'=>'establishment.rowid',),
|
||||
'fk_soc' => array('type'=>'integer:Societe:societe/class/societe.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label'=>'WorkPlace', 'enabled'=>'1', 'position'=>57, 'notnull'=>-1, 'visible'=>-1, 'index'=>1, 'help'=>"IfJobIsLocatedAtAPartner",),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user