Skip to content
Permalink
Browse files

Merge pull request #12783 from frederic34/patch-14

NEW upload odt templates for shipments
  • Loading branch information
eldy committed Jan 13, 2020
2 parents ab1a56c + 530eeff commit f9e3164c6eb607c3a25b7629f70c21f4cefdc7f4
Showing with 7 additions and 3 deletions.
  1. +7 −3 htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
@@ -4,7 +4,7 @@
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
* Copyright (C) 2018-2019 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2018-2019 Frédéric France <frederic.france@netlogic.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -119,7 +119,7 @@ public function info($langs)
$form = new Form($this->db);

$texte = $this->description.".<br>\n";
$texte .= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
$texte .= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" enctype="multipart/form-data">';
$texte .= '<input type="hidden" name="token" value="'.newToken().'">';
$texte .= '<input type="hidden" name="action" value="setModuleOptions">';
$texte .= '<input type="hidden" name="param1" value="EXPEDITION_ADDON_PDF_ODT_PATH">';
@@ -177,7 +177,11 @@ public function info($langs)
}
$texte .= '</div>';
}

// Add input to upload a new template file.
$texte .= '<div>'.$langs->trans("UploadNewTemplate").' <input type="file" name="uploadfile">';
$texte .= '<input type="hidden" value="EXPEDITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
$texte .= '<input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans("Upload")).'" name="upload">';
$texte .= '</div>';
$texte .= '</td>';

$texte .= '<td rowspan="2" class="tdtop hideonsmartphone">';

0 comments on commit f9e3164

Please sign in to comment.
You can’t perform that action at this time.