From b153e5ee0b9ccaa4a30f1a4a961e90bb34fea4b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Feb 2024 10:39:51 +0100 Subject: [PATCH] css --- htdocs/core/class/html.formmail.class.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 902a112a91f..78e5d7e0e9e 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -576,6 +576,7 @@ class FormMail extends Form $helpforsubstitution .= ''; } + /* if (!empty($this->withsubstit)) { // Unset or set ->withsubstit=0 to disable this. $out .= ''; if (is_numeric($this->withsubstit)) { @@ -584,7 +585,7 @@ class FormMail extends Form $out .= $form->textwithpicto($langs->trans('AvailableVariables'), $helpforsubstitution, 1, 'help', '', 0, 2, 'substittooltip'); // New usage } $out .= "\n"; - } + }*/ // From if (!empty($this->withfrom)) { @@ -813,7 +814,7 @@ class FormMail extends Form // Attached files if (!empty($this->withfile)) { $out .= ''; - $out .= ''.$langs->trans("MailFile").''; + $out .= ''.$langs->trans("MailFile").''; $out .= ''; @@ -863,12 +864,12 @@ class FormMail extends Form $out .= '
'; // Preview of attachment - $out .= img_mime($listofnames[$key]).' '.$listofnames[$key]; + $out .= img_mime($listofnames[$key]).$listofnames[$key]; - $out .= $formfile->showPreview(array(), $formfile_params[2], $formfile_params[4]); + $out .= ' '.$formfile->showPreview(array(), $formfile_params[2], $formfile_params[4]); if (!$this->withfilereadonly) { - $out .= ' '; - //$out.= ' '.img_delete($langs->trans("Delete").''; + $out .= ' '; + //$out.= ' '.img_delete($langs->trans("Remove"), 'id="removedfile_'.$key.'" name="removedfile_'.$key.'"', 'removedfile input-nobottom').''; } $out .= '
'; }