From 4cbe29cb27b1963cabdeaa83b780b6705cd0ece9 Mon Sep 17 00:00:00 2001
From: Björn Geiger
Date: Tue, 12 Apr 2011 16:37:05 +0200
Subject: Rechte können nun wieder bei Rollen hinzugefügt und gelöscht werden,
alle Rechte gleichzeitig von einer Rolle löschen
---
.../modules/user/views/scripts/role/show.phtml | 34 +++++++++++++---------
1 file changed, 21 insertions(+), 13 deletions(-)
(limited to 'application/modules/user/views/scripts')
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'))?>
-
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'));?>
+
+ rightcategorieslist)) {
+ foreach($this->rightcategorieslist as $k => $v):
+ $rights = $this->rightsList[$k];
+ if(count($rights) > 0) {
+ ?>