add new elements properties magic (#35861)

* add new elements properties magic

* add new elements properties magic
This commit is contained in:
Frédéric FRANCE 2025-10-21 01:04:53 +02:00 committed by GitHub
parent 7d01503c46
commit 894e73e9cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 5 deletions

View file

@ -14644,6 +14644,20 @@ function getElementProperties($elementType)
$classname = 'Fournisseur';
$table_element = 'societe';
$subelement = '';
} elseif ($elementType == 'recruitmentcandidature') {
$module = 'recruitment';
$classfile = 'recruitmentcandidature';
$classpath = 'recruitment/class';
$classname = 'RecruitmentCandidature';
$subelement = 'recruitmentcandidature';
$subdir = '/recruitmentcandidature';
} elseif ($elementType == 'recruitmentjobposition') {
$module = 'recruitment';
$classfile = 'recruitmentjobposition';
$classpath = 'recruitment/class';
$classname = 'RecruitmentJobPosition';
$subelement = 'recruitmentjobposition';
$subdir = '/recruitmentjobposition';
}

View file

@ -229,7 +229,7 @@ if ($object->id > 0 && $upload_dir !== null) {
$titre = $langs->trans("CardProduct".$object->type);
$picto = ($object->type == Product::TYPE_SERVICE ? 'service' : 'product');
print dol_get_fiche_head($head, 'documents', $titre, -1, $picto);
print dol_get_fiche_head($head, 'documents', $titre, -1, $picto, 0, '', '', 0, '', 1);
$parameters = array();
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook

View file

@ -310,7 +310,7 @@ if ($action == 'create') {
print '<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.'">';
}
print dol_get_fiche_head(array(), '');
print dol_get_fiche_head([], '');
print '<table class="border centpercent tableforfieldcreate">'."\n";
@ -370,7 +370,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
$res = $object->fetch_optionals();
$head = recruitmentCandidaturePrepareHead($object);
print dol_get_fiche_head($head, 'card', $langs->trans("RecruitmentCandidature"), -1, $object->picto);
print dol_get_fiche_head($head, 'card', $langs->trans("RecruitmentCandidature"), -1, $object->picto, 0, '', '', 0, '', 1);
$formconfirm = '';

View file

@ -118,7 +118,7 @@ if ($object->id && $upload_dir !== null) {
*/
$head = recruitmentCandidaturePrepareHead($object);
print dol_get_fiche_head($head, 'document', $langs->trans("RecruitmentCandidature"), -1, $object->picto);
print dol_get_fiche_head($head, 'document', $langs->trans("RecruitmentCandidature"), -1, $object->picto, 0, '', '', 0, '', 1);
// Build file list

View file

@ -157,7 +157,7 @@ if ($object->id && $upload_dir !== null) {
}
$head = user_prepare_head($object);
print dol_get_fiche_head($head, 'document', $langs->trans("User"), -1, 'user');
print dol_get_fiche_head($head, 'document', $langs->trans("User"), -1, 'user', 0, '', '', 0, '', 1);
$linkback = '';
if ($user->hasRight("user", "user", "read") || $user->admin) {