summaryrefslogtreecommitdiffstats
path: root/application/modules
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules')
-rw-r--r--application/modules/user/views/scripts/group/show.phtml11
-rw-r--r--application/modules/user/views/scripts/index/index.phtml5
-rw-r--r--application/modules/user/views/scripts/role/linkright.phtml6
3 files changed, 16 insertions, 6 deletions
diff --git a/application/modules/user/views/scripts/group/show.phtml b/application/modules/user/views/scripts/group/show.phtml
index b01ade4..042b34e 100644
--- a/application/modules/user/views/scripts/group/show.phtml
+++ b/application/modules/user/views/scripts/group/show.phtml
@@ -1,20 +1,28 @@
<h1>Groupdetails - <?php echo $this->group->getTitle();?></h1>
<?php
if($this->usergroup == $this->requestgroup){
+ if(Pbs_Acl::checkRight('gd')){
echo $this->formButton('deletegroup', 'Delete', array(
'onclick' => 'self.location="/user/group/delete/"',
'class' => 'rightbutton'));
+ }
+ if(Pbs_Acl::checkRight('geo')){
echo $this->formButton('editgroup', 'Edit', array(
'onclick' => 'self.location="/user/group/edit/"',
'class' => 'rightbutton'));
+ }
}
else{
+ if(Pbs_Acl::checkRight('gd')){
echo $this->formButton('deletegroup', 'Delete', array(
'onclick' => 'self.location="/user/group/delete/groupID/' . $this->group->getID() .'"',
'class' => 'rightbutton'));
+ }
+ if(Pbs_Acl::checkRight('geo')){
echo $this->formButton('editgroup', 'Edit', array(
'onclick' => 'self.location="/user/group/edit/groupID/' . $this->group->getID() .'"',
'class' => 'rightbutton'));
+ }
}
?>
<div class='listelement'>
@@ -36,6 +44,9 @@ if($this->usergroup == $this->requestgroup){ ?>
<div class='clear'></div>
</div>
</div>
+<div class='bottomimg'>
+ <img src='/stats/graphgroup/group/<?php echo $this->group->getID();?>' />
+ </div>
<?php
diff --git a/application/modules/user/views/scripts/index/index.phtml b/application/modules/user/views/scripts/index/index.phtml
index aa98393..f00d0dd 100644
--- a/application/modules/user/views/scripts/index/index.phtml
+++ b/application/modules/user/views/scripts/index/index.phtml
@@ -7,10 +7,7 @@
<?php foreach($this->links as $link => $text):?>
<a href='<?php echo $link;?>'><li><?php echo $text;?></li></a>
<?php endforeach ?>
- </ul>
- <div class='bottomimg'>
- <img src='/stats/graphgroup/' />
- </div>
+ </ul>
</div>
<?php endif ?>
diff --git a/application/modules/user/views/scripts/role/linkright.phtml b/application/modules/user/views/scripts/role/linkright.phtml
index f7c1133..06863d4 100644
--- a/application/modules/user/views/scripts/role/linkright.phtml
+++ b/application/modules/user/views/scripts/role/linkright.phtml
@@ -9,8 +9,10 @@ $(document).ready(function(){
$('fieldset').children('dl:gt(0)').hide();
$('fieldset fieldset>legend').css('cursor','pointer');
$('fieldset fieldset').click(
- function(){
- $(this).children('dl').slideToggle();
+ function(e){
+ if($(e.target).context.nodeName == "LEGEND"){
+ $(this).children('dl').slideToggle();
+ }
});
});