Debug v16
This commit is contained in:
parent
293b08ab1d
commit
050cc48d7e
@ -341,7 +341,35 @@ if ($action == 'edit') {
|
|||||||
|
|
||||||
dol_banner_tab($object, 'id', $linkback, $user->rights->user->user->lire || $user->admin);
|
dol_banner_tab($object, 'id', $linkback, $user->rights->user->user->lire || $user->admin);
|
||||||
|
|
||||||
|
print '<div class="fichecenter">';
|
||||||
|
|
||||||
print '<div class="underbanner clearboth"></div>';
|
print '<div class="underbanner clearboth"></div>';
|
||||||
|
print '<table class="border centpercent tableforfield">';
|
||||||
|
|
||||||
|
// Login
|
||||||
|
print '<tr><td class="titlefield">'.$langs->trans("Login").'</td>';
|
||||||
|
if (!empty($object->ldap_sid) && $object->statut == 0) {
|
||||||
|
print '<td class="error">';
|
||||||
|
print $langs->trans("LoginAccountDisableInDolibarr");
|
||||||
|
print '</td>';
|
||||||
|
} else {
|
||||||
|
print '<td>';
|
||||||
|
$addadmin = '';
|
||||||
|
if (property_exists($object, 'admin')) {
|
||||||
|
if (!empty($conf->multicompany->enabled) && !empty($object->admin) && empty($object->entity)) {
|
||||||
|
$addadmin .= img_picto($langs->trans("SuperAdministratorDesc"), "redstar", 'class="paddingleft"');
|
||||||
|
} elseif (!empty($object->admin)) {
|
||||||
|
$addadmin .= img_picto($langs->trans("AdministratorDesc"), "star", 'class="paddingleft"');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print showValueWithClipboardCPButton($object->login).$addadmin;
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
|
print '</tr>'."\n";
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|||||||
@ -282,7 +282,7 @@ print '</tr>'."\n";
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
if ($user->admin) {
|
if ($user->admin) {
|
||||||
print info_admin($langs->trans("WarningOnlyPermissionOfActivatedModules"));
|
print info_admin($langs->trans("WarningOnlyPermissionOfActivatedModules"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user