summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person
diff options
context:
space:
mode:
authorSimon2011-04-07 11:06:42 +0200
committerSimon2011-04-07 11:06:42 +0200
commit1a84ab04982c5685fb8b065321e0e745b560f959 (patch)
tree5a391d44b668e4588801bc31ab16ad7788c38536 /application/modules/user/views/scripts/person
parentBootos und Configs in Bootmenuentry categorisiert (diff)
downloadpbs2-1a84ab04982c5685fb8b065321e0e745b560f959.tar.gz
pbs2-1a84ab04982c5685fb8b065321e0e745b560f959.tar.xz
pbs2-1a84ab04982c5685fb8b065321e0e745b560f959.zip
Neues Layout in Gruppe und Person
Diffstat (limited to 'application/modules/user/views/scripts/person')
-rw-r--r--application/modules/user/views/scripts/person/index.phtml69
1 files changed, 31 insertions, 38 deletions
diff --git a/application/modules/user/views/scripts/person/index.phtml b/application/modules/user/views/scripts/person/index.phtml
index 824e7fb..7505954 100644
--- a/application/modules/user/views/scripts/person/index.phtml
+++ b/application/modules/user/views/scripts/person/index.phtml
@@ -22,45 +22,38 @@ if(isset($this->groups)) {
?>
<br />
<h2>Member in the following Groups:</h2>
-<table>
- <tr>
- <th>Title</th>
- <th>Description</th>
- <?php if($this->leaveRight === true) {
- ?>
- <th>Leave</th>
- <?php
- }
+
+<div class='listelement'>
+ <?php if(count($this->groups)==0)
+ echo "You are in no group." ?>
+ <?php foreach ($this->groups as $group): ?>
+ <?php
+ $class='';
+ if($group['membershipID'] == $this->userIDsNamespace['membershipID'])
+ $class= 'highlight';
?>
- </tr>
- <?php
- foreach($this->groups as $group) {
- ?>
- <tr
- <?php if($group['membershipID'] == $this->userIDsNamespace['membershipID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
- <td><?php echo $group['title']; ?></td>
- <td><?php echo $group['description']; ?></td>
- <?php if($this->leaveRight === true) {
- ?>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'user',
- 'controller' => 'person',
- 'action' => 'leave',
- 'membershipID' => $group['membershipID']
- ),
- 'default',
- true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- </td>
- <?php
- }
- ?>
- </tr>
- <?php
- }
- ?>
-</table>
+ <div class='element<?php echo " $class";?>'>
+ <div class='content'>
+ <div class='actions'>
+ <?php if($this->leaveRight === true): ?>
+ <a href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'leave',
+ 'membershipID' => $group['membershipID']
+ ),
+ 'default',
+ true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
+ <?php endif; ?>
+ </div>
+ <div class='title'><?php echo $group['title']; ?></div>
+ <div class='subtitle'><?php echo $group['description']; ?></div>
+ </div>
+ <div class='clear'></div>
+ </div>
+ <?php endforeach ?>
+</div>
<?php echo $this->pagination;
if($this->groupRequestRight === true) echo $this->formButton('addtogroup', 'Add to additional
Groups', array(