Better responsive behaviour

This commit is contained in:
Laurent Destailleur 2022-11-01 12:05:52 +01:00
parent 8158d6c73e
commit 39ef32326f

View File

@ -1072,14 +1072,15 @@ while ($i < $imaxinloop) {
}
}
// Phone
if (!empty($arrayfields['u.office_phone']['checked'])) {
print '<td>'.dol_print_phone($obj->office_phone, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'phone')."</td>\n";
print '<td class="tdoverflowmax125">'.dol_print_phone($obj->office_phone, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'phone')."</td>\n";
if (!$i) {
$totalarray['nbfield']++;
}
}
if (!empty($arrayfields['u.user_mobile']['checked'])) {
print '<td>'.dol_print_phone($obj->user_mobile, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'mobile')."</td>\n";
print '<td class="tdoverflowmax125">'.dol_print_phone($obj->user_mobile, $obj->country_code, 0, $obj->rowid, 'AC_TEL', ' ', 'mobile')."</td>\n";
if (!$i) {
$totalarray['nbfield']++;
}
@ -1091,10 +1092,10 @@ while ($i < $imaxinloop) {
}
}
if (!empty($arrayfields['u.api_key']['checked'])) {
print '<td>';
print '<td class="tdoverflowmax125" title="'.dol_escape_htmltag($obj->api_key).'">';
if ($obj->api_key) {
if ($canreadsecretapi) {
print $obj->api_key;
print dol_escape_htmltag($obj->api_key);
} else {
print '<span class="opacitymedium">'.$langs->trans("Hidden").'</span>';
}