diff options
Diffstat (limited to 'application/modules/user/views/scripts')
| -rw-r--r-- | application/modules/user/views/scripts/group/show.phtml | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/application/modules/user/views/scripts/group/show.phtml b/application/modules/user/views/scripts/group/show.phtml index 12c149f..306a279 100644 --- a/application/modules/user/views/scripts/group/show.phtml +++ b/application/modules/user/views/scripts/group/show.phtml @@ -87,27 +87,19 @@ if($this->groupID) { ?> <br /> <h2>Members:</h2> -<table> - <tr> - <th>Firstname</th> - <th>Name</th> - <th>email</th> - <th>city</th> - <th>revoke</th> - </tr> - - <?php - foreach($this->membersList as $member) { +<div class='listelement'> + <?php if(count($this->membersList)==0) + echo "This hroup has no members." ?> + <?php foreach ($this->membersList as $member): ?> + <?php $membershipID = $member['membershipID']; $person = $member['person']; - ?> - <tr class="entry"> - <td><?php echo $person->getFirstname(); ?></td> - <td><?php echo $person->getName(); ?></td> - <td><?php echo $person->getEmail(); ?></td> - <td><?php echo $person->getCity(); ?></td> - <td class='action'><a - href="<?php echo $this->url( + $role = $member['role']; + ?> + <div class='element'> + <div class='content'> + <div class='actions'> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'group', @@ -115,13 +107,16 @@ if($this->groupID) { 'membershipID' => $membershipID, ), 'default', - true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a> - </td> - </tr> - <?php - } - ?> -</table> + true) ?>"> <img src='/media/img/delete.png' alt='Revoke Membership' /></a> + </div> + <div class='title'><?php echo $person->getFirstname(); ?> <?php echo $person->getName(); ?></div> + <div class='subtitle'>Role: <?php echo $role->getTitle(); ?></div> + </div> + <div class='clear'></div> + </div> + <?php endforeach ?> +</div> + <?php echo $this->memberPagination; ?> <?php } |
