summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/role/show.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/views/scripts/role/show.phtml')
-rw-r--r--application/modules/user/views/scripts/role/show.phtml128
1 files changed, 68 insertions, 60 deletions
diff --git a/application/modules/user/views/scripts/role/show.phtml b/application/modules/user/views/scripts/role/show.phtml
index e91c106..8f4bb50 100644
--- a/application/modules/user/views/scripts/role/show.phtml
+++ b/application/modules/user/views/scripts/role/show.phtml
@@ -16,54 +16,63 @@ if($this->roleID) {
'onclick' => 'self.location="/user/role/edit/roleID/' . $this->role->getID() .'"',
'class' => 'rightbutton'));
?>
-<span class="clear"></span>
-<table>
- <tr>
- <th>Title</th>
- <th>Description</th>
- <th>Inheritance</th>
- </tr>
- <tr class="entry">
- <td><?php echo $this->role->getTitle(); ?></td>
- <td><?php echo $this->role->getDescription(); ?></td>
- <td><?php if($this->role->getInheritance() == 1) echo "yes"; else echo "no"; ?></td>
- </tr>
-</table>
+<div class='detailelement'>
+<div class='element'>
+<div class='content'>
+<div class='title'>Title:&nbsp;<span class="noBold"><?php echo $this->role->getTitle(); ?></span></div>
+</div>
+<div class='clear'></div>
+</div>
+<div class='element'>
+<div class='content'>
+<div class='title'>Description:&nbsp;<span class="noBold"><?php echo $this->role->getDescription(); ?></span></div>
+</div>
+<div class='clear'></div>
+</div>
+<div class='element'>
+<div class='content'><?php
+if($this->role->getInheritance()) {
+ ?>
+<div class='title'>Inheritance:&nbsp;<span class="noBold">yes</span></div>
+
+ <?php
+} else {
+ ?>
+<div class='title'>Inheritance:&nbsp;<span class="noBold">no</span></div>
+ <?php
+}
+?></div>
+<div class='clear'></div>
+</div>
+</div>
<br />
<h2>Rights:</h2>
- <?php
- if($this->rightsAvailable === true) {
- if($this->addRightToRoleRight) echo $this->formButton('linkright', 'Add Rights', array(
+<?php
+if($this->rightsAvailable === true) {
+ if($this->addRightToRoleRight) {
+ echo $this->formButton('linkright', 'Add Rights', array(
'onclick' => 'self.location="/user/role/linkright/roleID/' . $this->role->getID() .'"',
'class' => 'addbutton'))?>
<br />
<?php
}
- ?>
- <?php if(isset($this->rightsList)) {
- if(isset($this->rightcategorieslist)) {
- foreach($this->rightcategorieslist as $k => $v) {
- $rights = $this->rightsList[$k];
- if(count($rights) > 0) {
- ?>
-<h3><?php echo $v; ?></h3>
-<table>
- <tr>
- <th>Title</th>
- <th>Description</th>
- <?php if($this->removeRightOfRoleRight) echo '<th>Remove</th>'; ?>
- </tr>
-
- <?php
- foreach($rights as $right) {
+}
+if(count($this->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) {
?>
- <tr class="entry">
- <td><?php echo $right->getTitle(); ?></td>
- <td><?php echo $right->getDescription(); ?></td>
- <?php if($this->removeRightOfRoleRight) {
- ?>
- <td class='action'><a
- href="<?php echo $this->url(
+<h3><?php echo $v; ?>:</h3>
+<div class='listelement'><?php
+foreach($rights as $right):
+?>
+<div class='element'>
+<div class='content'><?php if($this->removeRightOfRoleRight) {
+ ?>
+<div class='actions'><a
+ href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'role',
@@ -72,28 +81,27 @@ if($this->roleID) {
),
'default',
true) ?>"> <img src='/media/img/delete.png' alt='Remove Right' /></a>
- </td>
- <?php
- }
- ?>
- </tr>
- <?php
- }
+</div>
+ <?php
+}
+?>
+<div class="title"><?php echo $right->getTitle(); ?></div>
+<?php
+if($right->getDescription()) {
?>
-</table>
+<div class="item"><?php echo $right->getDescription(); ?></div>
<?php
- }
- }
- }
- } else {
- ?>
-<br />
-<center>
-<h3>No Rights have been added!</h3>
-</center>
- <?php
+}
+?></div>
+<div class='clear'></div>
+</div>
+<?php
+endforeach;
}
+ ?></div>
+<br />
+ <?php
+ endforeach;
+}
}
?>
-<br />
-<br />