Better presentation for user edit card
This commit is contained in:
parent
f0365e49e2
commit
06c70e5a15
@ -1784,15 +1784,6 @@ else
|
|||||||
|
|
||||||
dol_fiche_head($head, 'user', $title, 0, 'user');
|
dol_fiche_head($head, 'user', $title, 0, 'user');
|
||||||
|
|
||||||
$rowspan=22;
|
|
||||||
if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file->main_authentication) && ! empty($conf->global->MAIN_OPENIDURL_PERUSER)) $rowspan++;
|
|
||||||
if (! empty($conf->societe->enabled)) $rowspan++;
|
|
||||||
if (! empty($conf->adherent->enabled)) $rowspan++;
|
|
||||||
if (! empty($conf->skype->enabled)) $rowspan++;
|
|
||||||
if (! empty($conf->salaries->enabled) && ! empty($user->rights->salaries->read)) $rowspan = $rowspan+3;
|
|
||||||
if (! empty($conf->agenda->enabled)) $rowspan++;
|
|
||||||
if (! empty($conf->accounting->enabled)) $rowspan++;
|
|
||||||
|
|
||||||
print '<table width="100%" class="border">';
|
print '<table width="100%" class="border">';
|
||||||
|
|
||||||
// Ref/ID
|
// Ref/ID
|
||||||
@ -1819,12 +1810,6 @@ else
|
|||||||
print $object->lastname;
|
print $object->lastname;
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Photo
|
|
||||||
print '<td align="center" valign="middle" width="25%" rowspan="'.$rowspan.'">';
|
|
||||||
print $form->showphoto('userphoto',$object,100,0,$caneditfield,'photowithmargin','small');
|
|
||||||
print '</td>';
|
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Firstname
|
// Firstname
|
||||||
@ -1841,6 +1826,14 @@ else
|
|||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Photo
|
||||||
|
print '<tr>';
|
||||||
|
print '<td>'.$langs->trans("Photo").'</td>';
|
||||||
|
print '<td valign="middle">';
|
||||||
|
print $form->showphoto('userphoto',$object,100,0,$caneditfield,'photowithmargin','small');
|
||||||
|
print '</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
// Employee
|
// Employee
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td>'.fieldLabel('Employee','employee',0).'</td><td>';
|
print '<td>'.fieldLabel('Employee','employee',0).'</td><td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user