diff --git a/app/View/Elements/eventattribute.ctp b/app/View/Elements/eventattribute.ctp index d98626488..62a3f5c6f 100644 --- a/app/View/Elements/eventattribute.ctp +++ b/app/View/Elements/eventattribute.ctp @@ -89,7 +89,172 @@ $object): - echo $this->element('eventattributerow', array('object' => $object, 'mayModify' => $mayModify, 'mayPublish' => $mayPublish)); + + $extra = ''; + $extra2 = ''; + $extra3 = ''; + $currentType = 'denyForm'; + if ($object['objectType'] == 0 ) { + $currentType = 'Attribute'; + if ($object['hasChildren'] == 1) { + $extra = 'highlight1'; + $extra3 = 'highlightBlueSides highlightBlueTop'; + } + if (!$mayModify) $currentType = 'ShadowAttribute'; + } else $extra = 'highlight2'; + if ($object['objectType'] == 1) { + $extra2 = '1'; + $extra3 = 'highlightBlueSides'; + if (isset($object['firstChild'])) { + $extra3 .= ' highlightBlueTop'; + } + if (isset($object['lastChild'])) { + $extra3 .= ' highlightBlueBottom'; + } + } + ?> +