diff options
| author | Björn Geiger | 2011-04-12 16:37:05 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-04-12 16:37:05 +0200 |
| commit | 4cbe29cb27b1963cabdeaa83b780b6705cd0ece9 (patch) | |
| tree | 43ecb8fbcb1b1685d734a2dd578bc9fc07cc847a /application/modules/user/views | |
| parent | quickfix für fbgui (diff) | |
| download | pbs2-4cbe29cb27b1963cabdeaa83b780b6705cd0ece9.tar.gz pbs2-4cbe29cb27b1963cabdeaa83b780b6705cd0ece9.tar.xz pbs2-4cbe29cb27b1963cabdeaa83b780b6705cd0ece9.zip | |
Rechte können nun wieder bei Rollen hinzugefügt und gelöscht werden, alle Rechte gleichzeitig von einer Rolle löschen
Diffstat (limited to 'application/modules/user/views')
| -rw-r--r-- | application/modules/user/views/scripts/role/show.phtml | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/application/modules/user/views/scripts/role/show.phtml b/application/modules/user/views/scripts/role/show.phtml index 8f4bb50..8c7503f 100644 --- a/application/modules/user/views/scripts/role/show.phtml +++ b/application/modules/user/views/scripts/role/show.phtml @@ -53,17 +53,22 @@ if($this->rightsAvailable === true) { echo $this->formButton('linkright', 'Add Rights', array( 'onclick' => 'self.location="/user/role/linkright/roleID/' . $this->role->getID() .'"', 'class' => 'addbutton'))?> -<br /> <?php } } -if(count($this->rightsList)==0) -echo "There are no Rights to display."; -if(isset($this->rightcategorieslist)) { - foreach($this->rightcategorieslist as $k => $v): - $rights = $this->rightsList[$k]; - if(count($rights) > 0) { - ?> +if(count($this->rightsList)==0) { + echo "There are no Rights to display."; +} else { + if($this->removeRightOfRoleRight) echo $this->formButton('deleteallrights', 'Delete All Rights', array( + 'onclick' => 'self.location="/user/role/unlinkright/rightrolesID/' . $this->roleID . '-all"', + 'class' => 'rightbutton'));?> +<br /> + <?php + if(isset($this->rightcategorieslist)) { + foreach($this->rightcategorieslist as $k => $v): + $rights = $this->rightsList[$k]; + if(count($rights) > 0) { + ?> <h3><?php echo $v; ?>:</h3> <div class='listelement'><?php foreach($rights as $right): @@ -96,12 +101,15 @@ if($right->getDescription()) { <div class='clear'></div> </div> <?php -endforeach; - } - ?></div> +endforeach +?></div> +<?php + } + ?> <br /> - <?php - endforeach; + <?php + endforeach; + } } } ?> |
