feat: add link back to list of token and to list of users

This commit is contained in:
yannis
2025-07-07 15:59:42 +02:00
parent f211cc832d
commit c24877a641
2 changed files with 3 additions and 1 deletions

View File

@@ -153,3 +153,4 @@ DeleteToken=Delete token
ConfirmDeleteToken=Are you sure you want to delete this token?
ListOfTokens=List of tokens
NewToken=New token
BackToTokenList=Back to token list

View File

@@ -420,7 +420,8 @@ if ($action == 'create') {
$tokenvalue = dolDecrypt($token->token);
$linkback = '<a href="'.DOL_URL_ROOT.'/user/api_token/list.php?id='.$id.'">'.$langs->trans("BackToList").'</a>';
$linkback = '<a href="'.DOL_URL_ROOT.'/user/api_token/list.php?id='.$id.'">'.$langs->trans("BackToTokenList").'</a>';
$linkback .= '<a href="'.DOL_URL_ROOT.'/user/list.php">'.$langs->trans("BackToList").'</a>';
$morehtmlref = '<a href="'.DOL_URL_ROOT.'/user/vcard.php?id='.$object->id.'&output=file&file='.urlencode(dol_sanitizeFileName($object->getFullName($langs).'.vcf')).'" class="refid" rel="noopener">';
$morehtmlref .= img_picto($langs->trans("Download").' '.$langs->trans("VCard"), 'vcard.png', 'class="valignmiddle marginleftonly paddingrightonly"');