diff options
| author | Björn Geiger | 2011-03-29 16:13:53 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-03-29 16:13:53 +0200 |
| commit | e2c0be1afbcd7035036abf495d308298a92e1551 (patch) | |
| tree | d1ba44e170c116b20366f8bba952ab59c20bdaf3 /application/modules | |
| parent | Merge branch 'master' of ssh://git.openslx.org/lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-e2c0be1afbcd7035036abf495d308298a92e1551.tar.gz pbs2-e2c0be1afbcd7035036abf495d308298a92e1551.tar.xz pbs2-e2c0be1afbcd7035036abf495d308298a92e1551.zip | |
aktive Rolle wird angezeigt
Diffstat (limited to 'application/modules')
| -rw-r--r-- | application/modules/user/controllers/RoleController.php | 2 | ||||
| -rw-r--r-- | application/modules/user/views/scripts/role/index.phtml | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/application/modules/user/controllers/RoleController.php b/application/modules/user/controllers/RoleController.php index 8f4d85c..3db425f 100644 --- a/application/modules/user/controllers/RoleController.php +++ b/application/modules/user/controllers/RoleController.php @@ -24,8 +24,8 @@ class User_RoleController extends Zend_Controller_Action { if(isset($this->userIDsNamespace['groupID'])) { $roleList = $this->roleMapper->findBy('groupID', $this->userIDsNamespace['groupID']); - $this->view->groupID = $this->userIDsNamespace['groupID']; $this->view->roleList = $roleList; + $this->view->userIDsNamespace = $this->userIDsNamespace; } else { $this->_helper->redirector('selectmembership', 'person'); return; diff --git a/application/modules/user/views/scripts/role/index.phtml b/application/modules/user/views/scripts/role/index.phtml index 7255db6..db20aa2 100644 --- a/application/modules/user/views/scripts/role/index.phtml +++ b/application/modules/user/views/scripts/role/index.phtml @@ -1,5 +1,5 @@ <?php -if($this->groupID) { +if($this->userIDsNamespace['groupID']) { ?> <h1>Roles</h1> <?php echo $this->formButton('addrole', 'Add Role', array( @@ -14,7 +14,8 @@ if($this->groupID) { $count = 0; foreach($this->roleList as $role) { ?> - <tr class="entry"> + <tr + <?php if($role['roleID'] == $this->userIDsNamespace['roleID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>> <td><?php echo $role['title'] ?></td> <td class='action'><a href="<?php echo $this->url( |
