Add info when job is closed

This commit is contained in:
Laurent Destailleur 2020-09-06 20:48:13 +02:00
parent d700649fb9
commit 1f6c0997f4
2 changed files with 10 additions and 2 deletions

View File

@ -68,3 +68,5 @@ InterviewToDo=Interview to do
AnswerCandidature=Candidature answer
YourCandidature=Your candidature
YourCandidatureAnswerMessage=Thanks you for your candidature.<br>...
JobClosedTextCandidateFound=The job offer is closed. The position has been filled.
JobClosedTextCanceled=The job offer is closed.

View File

@ -280,10 +280,16 @@ if (empty($emailforcontact)) {
}
print '<b>';
print $tmpuser->getFullName(-1);
print ' - '.img_picto('', 'email', 'class="paddingrightonly"').dol_print_email($emailforcontact);
print ' - '.dol_print_email($emailforcontact, 0, 0, 1, 0, 0, 1);
print '</b>';
print '</b><br>';
if ($object->status == RecruitmentJobPosition::STATUS_RECRUITED) {
print info_admin($langs->trans("JobClosedTextCandidateFound"), 0, 0, 0, 'warning');
}
if ($object->status == RecruitmentJobPosition::STATUS_CANCELED) {
print info_admin($langs->trans("JobClosedTextCanceled"), 0, 0, 0, 'warning');
}
print '<br>';
@ -291,7 +297,7 @@ print '<br>';
$text = $object->description;
print $text;
print '<input type="hidden" name="ref" value="'.$proposal->ref.'">';
print '<input type="hidden" name="ref" value="'.$object->ref.'">';
print '</div>'."\n";
print "\n";