From 224bd12065c58a0a774f046195226279c2e02159 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Dec 2016 11:51:50 +0100 Subject: [PATCH] Fix css for limit after a link to intervention --- .../fichinter/tpl/linkedobjectblock.tpl.php | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/htdocs/fichinter/tpl/linkedobjectblock.tpl.php b/htdocs/fichinter/tpl/linkedobjectblock.tpl.php index bb973369adc..40ee1a1690b 100644 --- a/htdocs/fichinter/tpl/linkedobjectblock.tpl.php +++ b/htdocs/fichinter/tpl/linkedobjectblock.tpl.php @@ -28,20 +28,24 @@ $linkedObjectBlock = $GLOBALS['linkedObjectBlock']; $langs->load("interventions"); +$ilink=0; $var=true; foreach($linkedObjectBlock as $key => $objectlink) { - $var=!$var; + $ilink++; + $var=!$var; + $trclass=($var?'pair':'impair'); + if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=' liste_sub_total'; ?> - > - trans("Intervention"); ?> - getNomUrl(1); ?> - - datev,'day'); ?> - - getLibStatut(3); ?> - ">transnoentitiesnoconv("RemoveLink")); ?> - + + trans("Intervention"); ?> + getNomUrl(1); ?> + + datev,'day'); ?> + + getLibStatut(3); ?> + ">transnoentitiesnoconv("RemoveLink")); ?> +