From 832e25f7f77686ee89382ce2e32de54273f3bf59 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 5 May 2010 09:21:34 +0000 Subject: [PATCH] Works on product canvas and templates --- .../product/canvas/default/tpl/edit.tpl.php | 46 +++++++++---------- .../product/canvas/default/tpl/view.tpl.php | 36 +++++++-------- .../product/canvas/service/tpl/create.tpl.php | 34 +++++++------- .../product/canvas/service/tpl/edit.tpl.php | 30 ++++++------ .../product/canvas/service/tpl/view.tpl.php | 30 ++++++------ 5 files changed, 88 insertions(+), 88 deletions(-) diff --git a/htdocs/product/canvas/default/tpl/edit.tpl.php b/htdocs/product/canvas/default/tpl/edit.tpl.php index 1634a5fadb8..69dc46d6234 100644 --- a/htdocs/product/canvas/default/tpl/edit.tpl.php +++ b/htdocs/product/canvas/default/tpl/edit.tpl.php @@ -21,7 +21,7 @@ -tpl['title']; ?> +object->tpl['title']; ?>

@@ -30,75 +30,75 @@
" method="post"> - - + + - - + - +stock->enabled) { ?> - +
trans("Ref"); ?> +
trans("Label"); ?>
trans("Status"); ?>tpl['status']; ?>object->tpl['status']; ?>
trans("StockLimit"); ?> - +
trans("Description"); ?> -tpl['textarea_description']) { -$product->tpl['doleditor_description']->Create(); +object->tpl['textarea_description']) { +$this->object->tpl['doleditor_description']->Create(); }else{ -echo $product->tpl['textarea_description']; +echo $this->object->tpl['textarea_description']; }?>
trans("Nature"); ?> -tpl['finished']; ?> +object->tpl['finished']; ?>
trans("Weight"); ?> - -tpl['weight_units']; ?> + +object->tpl['weight_units']; ?>
trans("Length"); ?> - -tpl['length_units']; ?> + +object->tpl['length_units']; ?>
trans("Surface"); ?> - -tpl['surface_units']; ?> + +object->tpl['surface_units']; ?>
trans("Volume"); ?> - -tpl['volume_units']; ?> + +object->tpl['volume_units']; ?>
trans("Hidden"); ?>tpl['hidden']; ?>
object->tpl['hidden']; ?>
trans("NoteNotVisibleOnBill"); ?> -tpl['textarea_note']) { -$product->tpl['doleditor_note']->Create(); +object->tpl['textarea_note']) { +$this->object->tpl['doleditor_note']->Create(); }else{ -echo $product->tpl['textarea_note']; +echo $this->object->tpl['textarea_note']; }?>
diff --git a/htdocs/product/canvas/default/tpl/view.tpl.php b/htdocs/product/canvas/default/tpl/view.tpl.php index ffb70e312b5..b237380fd80 100644 --- a/htdocs/product/canvas/default/tpl/view.tpl.php +++ b/htdocs/product/canvas/default/tpl/view.tpl.php @@ -25,74 +25,74 @@ trans("Ref"); ?> -tpl['ref']; ?> +object->tpl['ref']; ?> trans("Label") ?> -tpl['label']; ?> +object->tpl['label']; ?> -tpl['photos']) { ?> - -tpl['photos']; ?> +object->tpl['photos']) { ?> + +object->tpl['photos']; ?> -tpl['accountancyBuyCodeKey']; ?> -tpl['accountancyBuyCodeVal']; ?> +object->tpl['accountancyBuyCodeKey']; ?> +object->tpl['accountancyBuyCodeVal']; ?> -tpl['accountancySellCodeKey']; ?> -tpl['accountancySellCodeVal']; ?> +object->tpl['accountancySellCodeKey']; ?> +object->tpl['accountancySellCodeVal']; ?> trans("Status"); ?> -tpl['status']; ?> +object->tpl['status']; ?> trans("Description"); ?> -tpl['description']; ?> +object->tpl['description']; ?> trans("Nature"); ?> -tpl['finished']; ?> +object->tpl['finished']; ?> trans("Weight"); ?> -tpl['weight']; ?> +object->tpl['weight']; ?> trans("Length"); ?> -tpl['length']; ?> +object->tpl['length']; ?> trans("Surface"); ?> -tpl['surface']; ?> +object->tpl['surface']; ?> trans("Volume"); ?> -tpl['volume']; ?> +object->tpl['volume']; ?> trans("Hidden"); ?> -tpl['hidden']; ?> +object->tpl['hidden']; ?> trans("Note"); ?> -tpl['note']; ?> +object->tpl['note']; ?> diff --git a/htdocs/product/canvas/service/tpl/create.tpl.php b/htdocs/product/canvas/service/tpl/create.tpl.php index 03cea5fbfc7..4f7e08f3d0b 100644 --- a/htdocs/product/canvas/service/tpl/create.tpl.php +++ b/htdocs/product/canvas/service/tpl/create.tpl.php @@ -21,7 +21,7 @@ -tpl['title']; ?> +object->tpl['title']; ?>

@@ -37,41 +37,41 @@ trans("Ref"); ?> - + trans("RefAlreadyExists"); ?> trans("Label"); ?> - + trans("Status"); ?> -tpl['status']; ?> +object->tpl['status']; ?> trans("Description"); ?> -tpl['textarea_description']) { -$product->tpl['doleditor_description']->Create(); +object->tpl['textarea_description']) { +$this->object->tpl['doleditor_description']->Create(); }else{ -echo $product->tpl['textarea_description']; +echo $this->object->tpl['textarea_description']; }?> trans("Duration"); ?> -   -tpl['duration_unit']; ?> +   +object->tpl['duration_unit']; ?> trans("Hidden"); ?> -tpl['hidden']; ?> +object->tpl['hidden']; ?> trans("NoteNotVisibleOnBill"); ?> -tpl['textarea_note']) { -$product->tpl['doleditor_note']->Create(); +object->tpl['textarea_note']) { +$this->object->tpl['doleditor_note']->Create(); }else{ -echo $product->tpl['textarea_note']; +echo $this->object->tpl['textarea_note']; }?> @@ -83,16 +83,16 @@ echo $product->tpl['textarea_note']; - -
trans("SellingPrice"); ?> -tpl['price_base_type']; ?> + +object->tpl['price_base_type']; ?>
trans("MinPrice"); ?> +
trans("VATRate"); ?> -tpl['tva_tx']; ?> +object->tpl['tva_tx']; ?>
diff --git a/htdocs/product/canvas/service/tpl/edit.tpl.php b/htdocs/product/canvas/service/tpl/edit.tpl.php index f1aa027e172..83544edec5b 100644 --- a/htdocs/product/canvas/service/tpl/edit.tpl.php +++ b/htdocs/product/canvas/service/tpl/edit.tpl.php @@ -21,7 +21,7 @@ -tpl['title']; ?> +object->tpl['title']; ?>

@@ -30,48 +30,48 @@ " method="post"> - - + + - - + - + - - +
trans("Ref"); ?> +
trans("Label"); ?>
trans("Status"); ?>tpl['status']; ?>object->tpl['status']; ?>
trans("Description"); ?> -tpl['textarea_description']) { -$product->tpl['doleditor_description']->Create(); +object->tpl['textarea_description']) { +$this->object->tpl['doleditor_description']->Create(); }else{ -echo $product->tpl['textarea_description']; +echo $this->object->tpl['textarea_description']; }?>
trans("Duration"); ?>   -tpl['duration_unit']; ?> +   +object->tpl['duration_unit']; ?>
trans("Hidden"); ?>tpl['hidden']; ?>
object->tpl['hidden']; ?>
trans("NoteNotVisibleOnBill"); ?> -tpl['textarea_note']) { -$product->tpl['doleditor_note']->Create(); +object->tpl['textarea_note']) { +$this->object->tpl['doleditor_note']->Create(); }else{ -echo $product->tpl['textarea_note']; +echo $this->object->tpl['textarea_note']; }?>
diff --git a/htdocs/product/canvas/service/tpl/view.tpl.php b/htdocs/product/canvas/service/tpl/view.tpl.php index c42550507d6..77dba2592fa 100644 --- a/htdocs/product/canvas/service/tpl/view.tpl.php +++ b/htdocs/product/canvas/service/tpl/view.tpl.php @@ -25,54 +25,54 @@ trans("Ref"); ?> -tpl['ref']; ?> +object->tpl['ref']; ?> trans("Label") ?> -tpl['label']; ?> +object->tpl['label']; ?> -tpl['photos']) { ?> - -tpl['photos']; ?> +object->tpl['photos']) { ?> + +object->tpl['photos']; ?> -tpl['accountancyBuyCodeKey']; ?> -tpl['accountancyBuyCodeVal']; ?> +object->tpl['accountancyBuyCodeKey']; ?> +object->tpl['accountancyBuyCodeVal']; ?> -tpl['accountancySellCodeKey']; ?> -tpl['accountancySellCodeVal']; ?> +object->tpl['accountancySellCodeKey']; ?> +object->tpl['accountancySellCodeVal']; ?> trans("Status"); ?> -tpl['status']; ?> +object->tpl['status']; ?> trans("Description"); ?> -tpl['description']; ?> +object->tpl['description']; ?> trans("Duration"); ?> -tpl['duration_value']; ?>  -tpl['duration_unit']; ?>  +object->tpl['duration_value']; ?>  +object->tpl['duration_unit']; ?>  trans("Hidden"); ?> -tpl['hidden']; ?> +object->tpl['hidden']; ?> trans("Note"); ?> -tpl['note']; ?> +object->tpl['note']; ?>