From 112540fa9facab03efcb984d55bae74b5490f92e Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 6 Dec 2011 18:01:14 +0000 Subject: [PATCH] // adding attachement template in AdminProductsController --- .../themes/template/products/attachments.tpl | 93 ++++++ .../themes/template/products/informations.tpl | 2 +- controllers/admin/AdminProductsController.php | 294 ++++++------------ 3 files changed, 191 insertions(+), 198 deletions(-) create mode 100644 admin-dev/themes/template/products/attachments.tpl diff --git a/admin-dev/themes/template/products/attachments.tpl b/admin-dev/themes/template/products/attachments.tpl new file mode 100644 index 000000000..b86895706 --- /dev/null +++ b/admin-dev/themes/template/products/attachments.tpl @@ -0,0 +1,93 @@ +{* +* 2007-2011 PrestaShop +* +* NOTICE OF LICENSE +* +* This source file is subject to the Academic Free License (AFL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/afl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision: 8971 $ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + {if $obj->id}{/if} +

{l s='Attachment'}

+
+
+ +
+ {foreach $languages as $language} +
+ +
+ {/foreach} +
+
 
+ +
+ {foreach $languages as $language} +
+ +
+ {/foreach} +
+
 
+ +
+

+

{l s='Upload file from your computer'}

+
+
 
+
+ +
+
* {l s='Required field'}
+
+
 
+ + + + + +
+

{l s='Attachments for this product:'}

+

+ + {l s='Remove'} >> + +
+

{l s='Available attachments:'}

+

+ + << {l s='Add'} + + +
+
 
+ + + + diff --git a/admin-dev/themes/template/products/informations.tpl b/admin-dev/themes/template/products/informations.tpl index d678b71de..def12eedd 100644 --- a/admin-dev/themes/template/products/informations.tpl +++ b/admin-dev/themes/template/products/informations.tpl @@ -3,7 +3,7 @@

{l s='Product global information'}