From 32a3477ccbd71a727eaf68a4383f8d769b177161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Sat, 28 Jul 2012 21:05:00 +0200 Subject: [PATCH] BackToList links in Interventions section --- htdocs/fichinter/contact.php | 4 +++- htdocs/fichinter/document.php | 4 +++- htdocs/fichinter/fiche.php | 4 +++- htdocs/fichinter/note.php | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/htdocs/fichinter/contact.php b/htdocs/fichinter/contact.php index de49c8e781e..0f1d347f0a5 100644 --- a/htdocs/fichinter/contact.php +++ b/htdocs/fichinter/contact.php @@ -128,9 +128,11 @@ if ($id > 0 || ! empty($ref)) */ print ''; + $linkback = ''.$langs->trans("BackToList").''; + // Ref print '"; // Customer diff --git a/htdocs/fichinter/document.php b/htdocs/fichinter/document.php index 03ecf75522c..4419c63a4ed 100644 --- a/htdocs/fichinter/document.php +++ b/htdocs/fichinter/document.php @@ -157,9 +157,11 @@ if ($object->id) print '
'.$langs->trans("Ref").''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print "
'; + $linkback = ''.$langs->trans("BackToList").''; + // Ref print ''; // Societe diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index c8fb4c33aca..77dc95ad6bc 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -885,9 +885,11 @@ else if ($id > 0 || ! empty($ref)) print '
'.$langs->trans("Ref").''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print '
'; + $linkback = ''.$langs->trans("BackToList").''; + // Ref print ''; // Third party diff --git a/htdocs/fichinter/note.php b/htdocs/fichinter/note.php index 6b554c3aac1..630abae78b2 100644 --- a/htdocs/fichinter/note.php +++ b/htdocs/fichinter/note.php @@ -78,8 +78,10 @@ if ($id > 0 || ! empty($ref)) print '
'.$langs->trans("Ref").''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print '
'; + $linkback = ''.$langs->trans("BackToList").''; + print ''; // Company
'.$langs->trans('Ref').''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print '