diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 04efa858041..971aed07006 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1075,7 +1075,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// We do not use a field password but a field text to show new password to use.
$valuetoshow .= ($valuetoshow ? ' + '.$langs->trans("DolibarrPassword") : '').'';
if (!empty($conf->use_javascript_ajax)) {
- $valuetoshow .= ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_password" class="linkobject"');
+ $valuetoshow .= img_picto($langs->trans('Generate'), 'refresh', 'id="generate_password" class="linkobject paddingleft"');
}
}
}
@@ -1097,9 +1097,9 @@ if ($action == 'create' || $action == 'adduserldap') {
//$generated_password = getRandomPassword(false);
print '
| '.$langs->trans("ApiKey").' | ';
print '';
- print '';
+ print '';
if (!empty($conf->use_javascript_ajax)) {
- print ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_api_key" class="linkobject"');
+ print img_picto($langs->trans('Generate'), 'refresh', 'id="generate_api_key" class="linkobject paddingleft"');
}
print ' |
';
} else {
@@ -2449,7 +2449,7 @@ if ($action == 'create' || $action == 'adduserldap') {
if ($caneditpassword) {
$valuetoshow .= ($valuetoshow ? (' '.$langs->trans("or").' ') : '').'';
if (!empty($conf->use_javascript_ajax)) {
- $valuetoshow .= ' '.img_picto((getDolGlobalString('USER_PASSWORD_GENERATED') === 'none' ? $langs->trans('NoPasswordGenerationRuleConfigured') : $langs->trans('Generate')), 'refresh', 'id="generate_password" class="'.(getDolGlobalString('USER_PASSWORD_GENERATED') === 'none' ? ' opacitymedium' : ' linkobject').'"');
+ $valuetoshow .= img_picto((getDolGlobalString('USER_PASSWORD_GENERATED') === 'none' ? $langs->trans('NoPasswordGenerationRuleConfigured') : $langs->trans('Generate')), 'refresh', 'id="generate_password" class="paddingleft'.(getDolGlobalString('USER_PASSWORD_GENERATED') === 'none' ? ' opacitymedium' : ' linkobject').'"');
}
} else {
$valuetoshow .= ($valuetoshow ? (' '.$langs->trans("or").' ') : '').preg_replace('/./i', '*', $object->pass);
@@ -2472,9 +2472,9 @@ if ($action == 'create' || $action == 'adduserldap') {
print '| '.$langs->trans("ApiKey").' | ';
print '';
if ($caneditpassword || $user->hasRight("api", "apikey", "generate")) {
- print '';
+ print '';
if (!empty($conf->use_javascript_ajax)) {
- print ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_api_key" class="linkobject"');
+ print img_picto($langs->trans('Generate'), 'refresh', 'id="generate_api_key" class="linkobject paddingleft"');
}
}
print ' |
';