mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix download of sample import files with DoliDroid
This commit is contained in:
parent
fe6e8a5ec1
commit
ce98547015
|
|
@ -492,7 +492,8 @@ if ($step == 2 && $datatoimport) {
|
|||
$text = $objmodelimport->getDriverDescForKey($key);
|
||||
print '<td>'.$form->textwithpicto($objmodelimport->getDriverLabelForKey($key), $text).'</td>';
|
||||
print '<td style="text-align:center">';
|
||||
print '<a href="'.DOL_URL_ROOT.'/imports/emptyexample.php?format='.$key.$param.'" target="_blank" rel="noopener noreferrer">';
|
||||
$filename = $langs->trans("ExampleOfImportFile").'_'.$datatoimport.'.'.$format;
|
||||
print '<a href="'.DOL_URL_ROOT.'/imports/emptyexample.php?format='.$key.$param.'&output=file&file='.urlencode($filename).'" target="_blank" rel="noopener noreferrer">';
|
||||
print img_picto('', 'download', 'class="paddingright opacitymedium"');
|
||||
print $langs->trans("DownloadEmptyExampleShort");
|
||||
print '</a>';
|
||||
|
|
@ -583,7 +584,8 @@ if ($step == 3 && $datatoimport) {
|
|||
$text = $objmodelimport->getDriverDescForKey($format);
|
||||
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format), $text);
|
||||
print '</td><td style="text-align:right" class="nowrap">';
|
||||
print '<a href="'.DOL_URL_ROOT.'/imports/emptyexample.php?format='.$format.$param.'" target="_blank" rel="noopener noreferrer">';
|
||||
$filename = $langs->trans("ExampleOfImportFile").'_'.$datatoimport.'.'.$format;
|
||||
print '<a href="'.DOL_URL_ROOT.'/imports/emptyexample.php?format='.$format.$param.'&output=file&file='.urlencode($filename).'" target="_blank" rel="noopener noreferrer">';
|
||||
print img_picto('', 'download', 'class="paddingright opacitymedium"');
|
||||
print $langs->trans("DownloadEmptyExampleShort");
|
||||
print '</a>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user