summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/group
diff options
context:
space:
mode:
authorSimon2011-04-07 11:20:03 +0200
committerSimon2011-04-07 11:20:03 +0200
commit0068d91a05cb77f4381f7adc4fb924ef83fee8bf (patch)
tree887c72edd12a3e05efb3089bbb043a2fe0646b4d /application/modules/user/views/scripts/group
parentNeues Layout in Gruppe und Person (diff)
downloadpbs2-0068d91a05cb77f4381f7adc4fb924ef83fee8bf.tar.gz
pbs2-0068d91a05cb77f4381f7adc4fb924ef83fee8bf.tar.xz
pbs2-0068d91a05cb77f4381f7adc4fb924ef83fee8bf.zip
Layout bei "Members in Group"
Diffstat (limited to 'application/modules/user/views/scripts/group')
-rw-r--r--application/modules/user/views/scripts/group/show.phtml47
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
}