diff options
| author | Björn Geiger | 2011-04-11 13:51:05 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-04-11 13:51:05 +0200 |
| commit | b43ff296c311076e8970b40aae80ec79de24adf1 (patch) | |
| tree | 8ecd48164f7d43f313c8f26aef5db18aa73ce316 /application/modules/user/views/scripts/role/index.phtml | |
| parent | Neues Recht um default Bootmenu zu setzen & Bootmenu-REchte angepasst (diff) | |
| download | pbs2-b43ff296c311076e8970b40aae80ec79de24adf1.tar.gz pbs2-b43ff296c311076e8970b40aae80ec79de24adf1.tar.xz pbs2-b43ff296c311076e8970b40aae80ec79de24adf1.zip | |
verschiedene Layouts korrigiert
Diffstat (limited to 'application/modules/user/views/scripts/role/index.phtml')
| -rw-r--r-- | application/modules/user/views/scripts/role/index.phtml | 95 |
1 files changed, 51 insertions, 44 deletions
diff --git a/application/modules/user/views/scripts/role/index.phtml b/application/modules/user/views/scripts/role/index.phtml index baee6e4..cc34869 100644 --- a/application/modules/user/views/scripts/role/index.phtml +++ b/application/modules/user/views/scripts/role/index.phtml @@ -8,26 +8,30 @@ if($this->userIDsNamespace['groupID']) { 'onclick' => 'self.location="/user/role/add"', 'class' => 'addbutton')); ?> -<table> - <tr> - <th>Title <span class='code'>title</span></th> - <?php - if($this->detailsRight || $this->editRight || $this->deleteRight) { - echo '<th colspan=3>Actions</th>'; - } - ?> - </tr> +<div class='searchvars'> +<div class='head'>Available searchfilter:</div> +<div class='code'>title</div> +<div class='code'>description</div> +</div> + +<div class='listelement'><?php +if(count($this->roleList)==0) +echo "There are no roles" ?> <?php foreach($this->roleList as $k => $role): ?> +<?php +$class=''; +if($role['roleID'] == $this->userIDsNamespace['roleID']) +$class= 'highlight checked'; +?> +<div class='element<?php echo " $class";?>'><?php if($role['roleID'] != $this->userIDsNamespace['roleID']) { + ?> +<div class='number'><?php echo $k+1; ?></div> <?php - $count = 0; - foreach($this->roleList as $role) { - ?> - <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( +} +?> +<div class='content'> +<div class='actions'><?php if($this->detailsRight) { + ?> <a + href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'role', @@ -35,13 +39,11 @@ if($this->userIDsNamespace['groupID']) { 'roleID' => $role['roleID'] ), '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( + true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a> <?php +} +if($this->editRight) { + ?> <a + href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'role', @@ -49,13 +51,11 @@ if($this->userIDsNamespace['groupID']) { 'roleID' => $role['roleID'] ), '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( + true) ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a> <?php +} +if($this->deleteRight) { + ?> <a + href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'role', @@ -64,17 +64,24 @@ if($this->userIDsNamespace['groupID']) { ), 'default', true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a> - </td> - <?php - } - ?> - </tr> - <?php - $count++; - } - ?> -</table> - <?php echo $this->pagination; +</div> +<div class='title'><?php echo $role['title'] ?></div> + <?php if($role['description']) { + ?> +<div class='subtitle'><?php echo $role['description']; ?></div> + <?php + } else { + ?> +<div class='subtitle'> </div> + <?php + } + +} +?></div> +<div class='clear'></div> +</div> +<?php endforeach ?></div> +<?php echo $this->pagination; } ?> <br /> |
