fix: [galaxies] added new view that wasn't finished for the previous commit (stil WIP)

pull/3989/head
iglocska 2019-01-06 16:58:32 +01:00
parent 1280d20d5a
commit 6c58b379df
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<h4 class="blue"><?php echo __('Galaxies');?></h4>
<?php
$mayModify = (
($isAclModify && $object['Event']['orgc_id'] == $me['org_id'])
);
if ($scope == 'event') {
$element = 'galaxyQuickView';
} else if ($scope == 'attribute') {
$element = 'galaxyQuickViewMini';
}
echo $this->element($element, array(
'mayModify' => $mayModify,
'isAclTagger' => $isAclTagger,
'data' => $object['Galaxy'],
'target_id' => $object['Event']['id'],
'target_type' => $scope
));
?>
<script type="text/javascript">
var showContext = false;
$(document).ready(function () {
$('.addGalaxy').click(function() {
addGalaxyListener(this);
});
});
</script>