summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/role/index.phtml
diff options
context:
space:
mode:
authorBjörn Geiger2011-04-11 10:59:36 +0200
committerBjörn Geiger2011-04-11 10:59:36 +0200
commit8159b6bb65b9b69a7a2ef737d4fa11a5232c10f1 (patch)
tree1fb0d122e396cd24d80022fef260d5b2aff4a259 /application/modules/user/views/scripts/role/index.phtml
parentSuper Admin hat wieder alle Rechte (diff)
downloadpbs2-8159b6bb65b9b69a7a2ef737d4fa11a5232c10f1.tar.gz
pbs2-8159b6bb65b9b69a7a2ef737d4fa11a5232c10f1.tar.xz
pbs2-8159b6bb65b9b69a7a2ef737d4fa11a5232c10f1.zip
ACL im RoleController
Diffstat (limited to 'application/modules/user/views/scripts/role/index.phtml')
-rw-r--r--application/modules/user/views/scripts/role/index.phtml27
1 files changed, 23 insertions, 4 deletions
diff --git a/application/modules/user/views/scripts/role/index.phtml b/application/modules/user/views/scripts/role/index.phtml
index 2fb27bc..baee6e4 100644
--- a/application/modules/user/views/scripts/role/index.phtml
+++ b/application/modules/user/views/scripts/role/index.phtml
@@ -2,14 +2,20 @@
if($this->userIDsNamespace['groupID']) {
?>
<h1>Roles</h1>
- <?php echo $this->searchform; ?>
- <?php echo $this->formButton('addrole', 'Add Role', array(
+ <?php
+ echo $this->searchform;
+ if($this->addRight) echo $this->formButton('addrole', 'Add Role', array(
'onclick' => 'self.location="/user/role/add"',
- 'class' => 'addbutton'))?>
+ 'class' => 'addbutton'));
+ ?>
<table>
<tr>
<th>Title <span class='code'>title</span></th>
- <th colspan=3>Actions</th>
+ <?php
+ if($this->detailsRight || $this->editRight || $this->deleteRight) {
+ echo '<th colspan=3>Actions</th>';
+ }
+ ?>
</tr>
<?php
$count = 0;
@@ -18,6 +24,8 @@ if($this->userIDsNamespace['groupID']) {
<tr
<?php if($role['roleID'] == $this->userIDsNamespace['roleID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
<td><?php echo $role['title'] ?></td>
+ <?php if($this->detailsRight) {
+ ?>
<td class='action'><a
href="<?php echo $this->url(
array(
@@ -28,6 +36,10 @@ if($this->userIDsNamespace['groupID']) {
),
'default',
true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td>
+ <?php
+ }
+ if($this->editRight) {
+ ?>
<td class='action'><a
href="<?php echo $this->url(
array(
@@ -38,6 +50,10 @@ if($this->userIDsNamespace['groupID']) {
),
'default',
true) ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td>
+ <?php
+ }
+ if($this->deleteRight) {
+ ?>
<td class='action'><a
href="<?php echo $this->url(
array(
@@ -49,6 +65,9 @@ if($this->userIDsNamespace['groupID']) {
'default',
true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
</td>
+ <?php
+ }
+ ?>
</tr>
<?php
$count++;