summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/person
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-08 12:57:10 +0200
committerBjörn Geiger2011-08-08 12:57:10 +0200
commit179ab3fb6df72c6161e27b45c3deabd5155474c6 (patch)
tree65972144cc789854e0bf4b78abffac308e20db13 /application/views/scripts/person
parentverschiedenes (diff)
downloadpoolctrl-179ab3fb6df72c6161e27b45c3deabd5155474c6.tar.gz
poolctrl-179ab3fb6df72c6161e27b45c3deabd5155474c6.tar.xz
poolctrl-179ab3fb6df72c6161e27b45c3deabd5155474c6.zip
Memberships anzeigen bei Owndetails
Diffstat (limited to 'application/views/scripts/person')
-rw-r--r--application/views/scripts/person/index.phtml35
1 files changed, 32 insertions, 3 deletions
diff --git a/application/views/scripts/person/index.phtml b/application/views/scripts/person/index.phtml
index facacac..01d35de 100644
--- a/application/views/scripts/person/index.phtml
+++ b/application/views/scripts/person/index.phtml
@@ -4,9 +4,6 @@ label {
width: 150px !important;
}
</style>
-<?php echo $this->formButton('editperson', 'Edit', array(
- 'onclick' => 'window.open("http://' . $this->pbs2host . '/user/person/edit/");return false;',
- 'class' => 'rightbutton'))?>
<div class='listelement'>
<div class='element'>
<div class='content'>
@@ -38,3 +35,35 @@ label {
<div class='clear'></div>
</div>
</div>
+<br />
+<h2>Member in the following Groups:</h2>
+<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 checked';
+ ?>
+ <div class='element<?php echo " $class";?>'>
+ <div class='content'>
+ <div class='title'><?php echo $group['title']; ?></div>
+ <div class='subtitle'><?php echo $group['description']; ?>&nbsp;</div>
+ <div class='details'>
+ <label>Role</label>
+ <div class='item'><?php echo $group['role']; ?>&nbsp;</div>
+ </div>
+ <?php if(isset($this->apikeys[$group['groupID']]) && $this->apikeys[$group['groupID']] != null):?>
+ <div class='details'>
+ <label>API-Key</label>
+ <div class='item'><?php echo $this->apikeys[$group['groupID']]; ?>&nbsp;</div>
+ </div>
+ <?php endif;?>
+ </div>
+ <div class='clear'></div>
+ </div>
+ <?php endforeach ?>
+</div>
+<?php echo $this->pagination; \ No newline at end of file