diff --git a/htdocs/don/card.php b/htdocs/don/card.php
index 6f3ab42d7fc..02498009cd9 100644
--- a/htdocs/don/card.php
+++ b/htdocs/don/card.php
@@ -765,6 +765,10 @@ if (! empty($id) && $action != 'edit')
print $formfile->showdocuments('donation',$filename,$filedir,$urlsource,$genallowed,$delallowed,$object->modelpdf);
+ // Show links to link elements
+ $linktoelem = $form->showLinkToObjectBlock($object, null, array('don'));
+ $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
+
print '
';
diff --git a/htdocs/don/tpl/linkedobjectblock.tpl.php b/htdocs/don/tpl/linkedobjectblock.tpl.php
new file mode 100644
index 00000000000..fdf6ae71c2f
--- /dev/null
+++ b/htdocs/don/tpl/linkedobjectblock.tpl.php
@@ -0,0 +1,74 @@
+
+ * Copyright (C) 2013 Juanjo Menent
+ * Copyright (C) 2014 Marcos GarcĂa
+ * Copyright (C) 2017 Charlene Benke
+ *
+ * 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
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+?>
+
+
+
+load("donations");
+
+$total=0; $ilink=0;
+$var=true;
+foreach($linkedObjectBlock as $key => $objectlink)
+{
+ $ilink++;
+
+ $trclass=($var?'pair':'impair');
+ if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=' liste_sub_total';
+?>
+
+ | trans("Donation"); ?> |
+ getNomUrl(1); ?> |
+ ref_client; ?> |
+ date, 'day'); ?> |
+ total_ht;
+ echo price($objectlink->total_ht);
+ } ?>
+ |
+ getLibStatut(3); ?> |
+
+ 1)
+{
+ ?>
+
+ | trans("Total"); ?> |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+