This commit is contained in:
Laurent Destailleur 2024-10-26 15:41:34 +02:00
parent f5e4ab0220
commit ab6bfdf963
3 changed files with 8 additions and 7 deletions

View file

@ -9694,8 +9694,8 @@ class Form
$htmltoenteralink .= '<tr class="liste_titre">';
//print '<td>' . $langs->trans("Ref") . '</td>';
$htmltoenteralink .= '<td class="center"><input type="text" placeholder="'.dol_escape_htmltag($langs->trans("Ref")).'" name="reftolinkto" value="' . dol_escape_htmltag(GETPOST('reftolinkto', 'alpha')) . '">&nbsp;';
$htmltoenteralink .= '<input type="submit" class="button small valignmiddle" value="' . $langs->trans('ToLink') . '">&nbsp;';
$htmltoenteralink .= '<input type="submit" class="button small" name="cancel" value="' . $langs->trans('Cancel') . '"></td>';
$htmltoenteralink .= '<input type="submit" class="button smallpaddingimp valignmiddle" value="' . $langs->trans('ToLink') . '">&nbsp;';
$htmltoenteralink .= '<input type="submit" class="button smallpaddingimp" name="cancel" value="' . $langs->trans('Cancel') . '"></td>';
$htmltoenteralink .= '</tr>';
$htmltoenteralink .= '</table>';
$htmltoenteralink .= '</form>';
@ -9749,12 +9749,12 @@ class Form
$htmltoenteralink .= '</table>';
$htmltoenteralink .= '<div class="center">';
if ($num) {
$htmltoenteralink .= '<input type="submit" class="button valignmiddle marginleftonly marginrightonly small" value="' . $langs->trans('ToLink') . '">';
$htmltoenteralink .= '<input type="submit" class="button valignmiddle marginleftonly marginrightonly smallpaddingimp" value="' . $langs->trans('ToLink') . '">';
}
if (empty($conf->use_javascript_ajax)) {
$htmltoenteralink .= '<input type="submit" class="button button-cancel marginleftonly marginrightonly small" name="cancel" value="' . $langs->trans("Cancel") . '"></div>';
$htmltoenteralink .= '<input type="submit" class="button button-cancel marginleftonly marginrightonly smallpaddingimp" name="cancel" value="' . $langs->trans("Cancel") . '"></div>';
} else {
$htmltoenteralink .= '<input type="submit" onclick="jQuery(\'#' . $key . 'list\').toggle(); return false;" class="button button-cancel marginleftonly marginrightonly small" name="cancel" value="' . $langs->trans("Cancel") . '"></div>';
$htmltoenteralink .= '<input type="submit" onclick="jQuery(\'#' . $key . 'list\').toggle(); return false;" class="button button-cancel marginleftonly marginrightonly smallpaddingimp" name="cancel" value="' . $langs->trans("Cancel") . '"></div>';
}
$htmltoenteralink .= '</form>';
}

View file

@ -78,7 +78,7 @@ if (isModEnabled('multicurrency')) {
print $form->editfieldkey('CurrencyRate', 'multicurrency_tx', '', $object, 0);
print '</td>';
if ($usercancreate && $action != 'editmulticurrencyrate' && $currencyIsEditable && $object->multicurrency_code && $object->multicurrency_code != $conf->currency) {
print '<td class="right"><a class="editfielda" href="'.$_SERVER["PHP_SELF"].'?action=editmulticurrencyrate&token='.newToken().'&id='.$object->id.'">'.img_edit($langs->transnoentitiesnoconv('SetMultiCurrencyCode'), 1).'</a></td>';
print '<td class="right"><a class="editfielda" href="'.$_SERVER["PHP_SELF"].'?action=editmulticurrencyrate&token='.newToken().'&id='.$object->id.'">'.img_edit($langs->transnoentitiesnoconv('SetMultiCurrencyRate'), 1).'</a></td>';
}
print '</tr></table>';
print '</td><td'.($colspan == 2 ? ' colspan="2"' : '').'>';

View file

@ -967,10 +967,11 @@ PrivateDownloadLinkDesc=You need to be logged and you need permissions to view o
Download=Download
DownloadDocument=Download document
DownloadSignedDocument=Download signed document
ActualizeCurrency=Use last known rate
ActualizeCurrency=Use the last known rate of the currency
Fiscalyear=Fiscal year
ModuleBuilder=Module and Application Builder
SetMultiCurrencyCode=Set currency
SetMultiCurrencyRate=Set currency rate
BulkActions=Bulk actions
ClickToShowHelp=Click to show tooltip help
WebSite=Website