enhance member tooltip
This commit is contained in:
parent
66369567b3
commit
7af9834a0c
@ -2287,6 +2287,7 @@ class Adherent extends CommonObject
|
|||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
$datas = [];
|
$datas = [];
|
||||||
|
$langs->loadLangs(['members', 'companies']);
|
||||||
|
|
||||||
$nofetch = empty($params['nofetch']) ? false : true;
|
$nofetch = empty($params['nofetch']) ? false : true;
|
||||||
if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
||||||
@ -2303,6 +2304,9 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
$datas['divopen'] = '<div class="centpercent">';
|
$datas['divopen'] = '<div class="centpercent">';
|
||||||
$datas['picto'] = img_picto('', $this->picto).' <u class="paddingrightonly">'.$langs->trans("Member").'</u> '.$this->getLibStatut(4);
|
$datas['picto'] = img_picto('', $this->picto).' <u class="paddingrightonly">'.$langs->trans("Member").'</u> '.$this->getLibStatut(4);
|
||||||
|
if (!empty($this->morphy)) {
|
||||||
|
$datas['picto'] .= ' ' . $this->getmorphylib('', 1);
|
||||||
|
}
|
||||||
if (!empty($this->ref)) {
|
if (!empty($this->ref)) {
|
||||||
$datas['ref'] = '<br><b>'.$langs->trans('Ref').':</b> '.$this->ref;
|
$datas['ref'] = '<br><b>'.$langs->trans('Ref').':</b> '.$this->ref;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,7 +118,6 @@ if ($objecttype == 'facture' || $objecttype == 'invoice') {
|
|||||||
$module = 'contrat';
|
$module = 'contrat';
|
||||||
$myobject = 'contrat';
|
$myobject = 'contrat';
|
||||||
} elseif ($objecttype == 'member') {
|
} elseif ($objecttype == 'member') {
|
||||||
$langs->load('members');
|
|
||||||
$classpath = 'adherents/class';
|
$classpath = 'adherents/class';
|
||||||
$module = 'adherent';
|
$module = 'adherent';
|
||||||
$myobject = 'adherent';
|
$myobject = 'adherent';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user