summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/role/index.phtml
diff options
context:
space:
mode:
authorSimon2011-04-11 12:25:08 +0200
committerSimon2011-04-11 12:25:08 +0200
commit7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61 (patch)
tree32cb37caf728ff6a6ffd70e8d34892151675c5c1 /application/modules/user/views/scripts/role/index.phtml
parentLayout an rechte angepasst & send-post zum testen an datenbank angepasst (diff)
parentACL im RoleController (diff)
downloadpbs2-7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61.tar.gz
pbs2-7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61.tar.xz
pbs2-7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
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++;