From 8159b6bb65b9b69a7a2ef737d4fa11a5232c10f1 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 11 Apr 2011 10:59:36 +0200 Subject: ACL im RoleController --- .../modules/user/views/scripts/role/show.phtml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'application/modules/user/views/scripts/role/show.phtml') diff --git a/application/modules/user/views/scripts/role/show.phtml b/application/modules/user/views/scripts/role/show.phtml index 8194353..e91c106 100644 --- a/application/modules/user/views/scripts/role/show.phtml +++ b/application/modules/user/views/scripts/role/show.phtml @@ -9,13 +9,13 @@ if($this->roleID) {

Role Details

- formButton('deleterole', 'Delete', array( + if($this->deleteRight) echo $this->formButton('deleterole', 'Delete', array( 'onclick' => 'self.location="/user/role/delete/roleID/' . $this->role->getID() .'"', - 'class' => 'rightbutton'))?> - formButton('editrole', 'Edit', array( + 'class' => 'rightbutton')); + if($this->editRight) echo $this->formButton('editrole', 'Edit', array( 'onclick' => 'self.location="/user/role/edit/roleID/' . $this->role->getID() .'"', - 'class' => 'rightbutton'))?> + 'class' => 'rightbutton')); + ?> @@ -33,7 +33,7 @@ if($this->roleID) {

Rights:

rightsAvailable === true) { - echo $this->formButton('linkright', 'Add Rights', array( + if($this->addRightToRoleRight) echo $this->formButton('linkright', 'Add Rights', array( 'onclick' => 'self.location="/user/role/linkright/roleID/' . $this->role->getID() .'"', 'class' => 'addbutton'))?>
@@ -51,7 +51,7 @@ if($this->roleID) { - + removeRightOfRoleRight) echo ''; ?> roleID) { + removeRightOfRoleRight) { + ?> +
Title DescriptionRemoveRemove
getTitle(); ?> getDescription(); ?> Remove Right