summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/group/showall.phtml
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/group/showall.phtml
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/group/showall.phtml')
-rw-r--r--application/modules/user/views/scripts/group/showall.phtml57
1 files changed, 33 insertions, 24 deletions
diff --git a/application/modules/user/views/scripts/group/showall.phtml b/application/modules/user/views/scripts/group/showall.phtml
index 7f6be67..9afedbb 100644
--- a/application/modules/user/views/scripts/group/showall.phtml
+++ b/application/modules/user/views/scripts/group/showall.phtml
@@ -4,20 +4,28 @@
'onclick' => 'self.location="/user/group/add"',
'class' => 'addbutton'))
?>
-<table>
- <tr>
- <th>Title <span class='code'>title</span></th>
- <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
$count = 0;
- foreach($this->groupList as $group) {
+ if(count($this->groupList)==0)
+ echo "There are no groups" ?>
+ <?php foreach ($this->groupList as $group): ?>
+ <?php
+ $class='';
+ if($group->getID() == $this->userIDsNamespace['groupID'])
+ $class= 'highlight';
?>
- <tr
- <?php if($group->getID() == $this->userIDsNamespace['groupID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
- <td><?php echo $group->getTitle(); ?></td>
- <td class='action'><a
- href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
+ <div class='element<?php echo " $class";?>'>
+ <div class='content'>
+ <div class='actions'>
+ <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
array(
'module' => 'user',
'controller' => 'group',
@@ -33,8 +41,7 @@
),
'default',
true); ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td>
- <td class='action'><a
- href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
+ <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
array(
'module' => 'user',
'controller' => 'group',
@@ -50,8 +57,7 @@
),
'default',
true); ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td>
- <td class='action'><a
- href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
+ <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
array(
'module' => 'user',
'controller' => 'group',
@@ -67,15 +73,18 @@
),
'default',
true); ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- </td>
- </tr>
- <?php
- $count++;
- }
- ?>
-</table>
- <?php echo $this->pagination; ?>
- <?php echo $this->formButton('linkgroups', 'Link Groups', array(
+ </div>
+ <div class='title'><?php echo $group->getTitle(); ?></div>
+ <div class='subtitle'><?php echo $group->getDescription(); ?></div>
+ </div>
+ <div class='clear'></div>
+ </div>
+ <?php $count++; ?>
+ <?php endforeach ?>
+</div>
+<?php echo $this->pagination; ?>
+
+<?php echo $this->formButton('linkgroups', 'Link Groups', array(
'onclick' => 'self.location="/user/group/link"',
'class' => 'addbutton'))
?>