From ef1ecadd8c4f6d9b7f521734df060dd03c4c0cff Mon Sep 17 00:00:00 2001 From: Christian Foellmann Date: Fri, 19 Aug 2022 14:28:15 +0200 Subject: [PATCH] fix title on application card --- .../recruitment/recruitmentcandidature_card.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/htdocs/recruitment/recruitmentcandidature_card.php b/htdocs/recruitment/recruitmentcandidature_card.php index b6e4773d936..9e2f6be9398 100644 --- a/htdocs/recruitment/recruitmentcandidature_card.php +++ b/htdocs/recruitment/recruitmentcandidature_card.php @@ -257,13 +257,13 @@ $form = new Form($db); $formfile = new FormFile($db); $formproject = new FormProjets($db); -$title = $object->ref." - ".$langs->trans('Card'); -$help_url = ''; -llxHeader('', $title, $help_url); - // Part to create if ($action == 'create') { + $title = $langs->trans('NewCandidature'); + $help_url = ''; + llxHeader('', $title, $help_url); + print load_fiche_titre($langs->trans("NewObject", $langs->transnoentitiesnoconv("RecruitmentCandidature")), '', 'object_'.$object->picto); print '
'; @@ -299,6 +299,10 @@ if ($action == 'create') { // Part to edit record if (($id || $ref) && $action == 'edit') { + $title = $object->ref." - ".$langs->trans('Card'); + $help_url = ''; + llxHeader('', $title, $help_url); + print load_fiche_titre($langs->trans("RecruitmentCandidature"), '', 'object_'.$object->picto); print ''; @@ -335,6 +339,10 @@ if (($id || $ref) && $action == 'edit') { if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) { $res = $object->fetch_optionals(); + $title = $object->ref." - ".$langs->trans('Card'); + $help_url = ''; + llxHeader('', $title, $help_url); + $head = recruitmentcandidaturePrepareHead($object); print dol_get_fiche_head($head, 'card', $langs->trans("RecruitmentCandidature"), -1, $object->picto);