diff --git a/htdocs/product/canvas/product/tpl/card_view.tpl.php b/htdocs/product/canvas/product/tpl/card_view.tpl.php index 44b1f96203b..921cef87200 100644 --- a/htdocs/product/canvas/product/tpl/card_view.tpl.php +++ b/htdocs/product/canvas/product/tpl/card_view.tpl.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2010-2018 Regis Houssin * * 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 @@ -27,7 +27,20 @@ $object=$GLOBALS['object']; ?> -trans("Product"); ?> +trans("CardProduct".$object->type); + +dol_fiche_head($head, 'card', $titre, -1, 'product'); + +$linkback = ''.$langs->trans("BackToList").''; +$object->next_prev_filter=" fk_product_type = ".$object->type; + +$shownav = 1; +if ($user->societe_id && ! in_array('product', explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL))) $shownav=0; + +dol_banner_tab($object, 'ref', $linkback, $shownav, 'ref'); +?> error,$object->errors); ?> diff --git a/htdocs/product/canvas/service/tpl/card_view.tpl.php b/htdocs/product/canvas/service/tpl/card_view.tpl.php index fc129132dee..0ce5252b053 100644 --- a/htdocs/product/canvas/service/tpl/card_view.tpl.php +++ b/htdocs/product/canvas/service/tpl/card_view.tpl.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2010-2018 Regis Houssin * * 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 @@ -27,7 +27,20 @@ $object=$GLOBALS['object']; ?> -trans("Service"); ?> +trans("CardProduct".$object->type); + +dol_fiche_head($head, 'card', $titre, -1, 'service'); + +$linkback = ''.$langs->trans("BackToList").''; +$object->next_prev_filter=" fk_product_type = ".$object->type; + +$shownav = 1; +if ($user->societe_id && ! in_array('product', explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL))) $shownav=0; + +dol_banner_tab($object, 'ref', $linkback, $shownav, 'ref'); +?> error,$object->errors); ?>