diff --git a/htdocs/public/recruitment/view.php b/htdocs/public/recruitment/view.php index 8a751328e5a..b5576913d77 100644 --- a/htdocs/public/recruitment/view.php +++ b/htdocs/public/recruitment/view.php @@ -45,6 +45,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/public.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; /** * @var Conf $conf @@ -100,6 +101,8 @@ $object->fetch(0, $ref); $user->loadDefaultValues(); $errmsg = ""; +$extrafields = new ExtraFields($db); + /* * Actions */ @@ -174,6 +177,15 @@ if ($action == "dosubmit") { // Test on permission not required here (anonymous $error++; $errmsg .= implode('
', $candidature->errors); } + + // Fill array 'array_options' with data from add form + $extrafields->fetch_name_optionals_label($candidature->table_element); + $ret = $extrafields->setOptionalsFromPost(null, $candidature); + if ($ret < 0) { + $error++; + $errmsg .= $candidature->error; + } + if (!$error) { $result = $candidature->create($user); if ($result <= 0) { @@ -415,6 +427,13 @@ if ($action != 'dosubmit') { print ''; print ''."\n"; + // Other attributes + $object = new RecruitmentCandidature($db); + $parameters['tpl_context'] = 'public'; // define template context to public + $parameters['tdclass'] = 'left'; + $extrafields->fetch_name_optionals_label("recruitment_recruitmentcandidature"); + include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_add.tpl.php'; + print ''.$langs->trans("Message").''; print ''; print ''."\n"; diff --git a/htdocs/recruitment/recruitmentcandidature_list.php b/htdocs/recruitment/recruitmentcandidature_list.php index 835103e1542..638263933ed 100644 --- a/htdocs/recruitment/recruitmentcandidature_list.php +++ b/htdocs/recruitment/recruitmentcandidature_list.php @@ -427,6 +427,7 @@ if ($jobposition->id > 0 && (empty($action) || ($action != 'edit' && $action != */ // Project if (isModEnabled('project')) { + require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php'; $formproject = new FormProjets($db); $langs->load("projects"); $morehtmlref .= $langs->trans('Project').' '; diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 2d1deeb087a..544896c9fdd 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -5391,7 +5391,7 @@ img.boxhandle, img.boxclose { .star-selection { font-size: 1rem; cursor: pointer; - display: inline-block; + display: flex; white-space: nowrap; } .star { diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 4c15e857e62..b4d0ef62334 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -5377,7 +5377,7 @@ img.boxhandle, img.boxclose { .star-selection { font-size: 1rem; cursor: pointer; - display: inline-block; + display: flex; white-space: nowrap; } .star {