diff options
| author | Björn Geiger | 2011-03-17 14:03:43 +0100 |
|---|---|---|
| committer | Björn Geiger | 2011-03-17 14:03:43 +0100 |
| commit | a26061089a91bf3a214d6a0dba9ffad8a7006a61 (patch) | |
| tree | 718ef3992621aba600e39f877f9c9068e17662ca /application/modules/dev/views/scripts/group/index.phtml | |
| parent | ClientMapper return value (diff) | |
| download | pbs2-a26061089a91bf3a214d6a0dba9ffad8a7006a61.tar.gz pbs2-a26061089a91bf3a214d6a0dba9ffad8a7006a61.tar.xz pbs2-a26061089a91bf3a214d6a0dba9ffad8a7006a61.zip | |
Person und Gruppen, Fehler korrigiert + Layout
Diffstat (limited to 'application/modules/dev/views/scripts/group/index.phtml')
| -rw-r--r-- | application/modules/dev/views/scripts/group/index.phtml | 58 |
1 files changed, 40 insertions, 18 deletions
diff --git a/application/modules/dev/views/scripts/group/index.phtml b/application/modules/dev/views/scripts/group/index.phtml index 714498e..a3d1269 100644 --- a/application/modules/dev/views/scripts/group/index.phtml +++ b/application/modules/dev/views/scripts/group/index.phtml @@ -1,27 +1,48 @@ +<h1>Groups</h1> +<?php echo $this->formButton('addgroup', 'Add Group', array( + 'onclick' => 'self.location="/dev/group/add"', + 'class' => 'addbutton'))?> <table> <tr> - <th>Title:</th> - <th>Functions:</th> + <th>Title</th> + <th colspan=3>Actions</th> </tr> <?php $count = 0; foreach($this->groupList as $group) { ?> - <tr> + <tr class="entry"> <td><?php echo $group->getTitle(); ?></td> - <td> - <form name="show<?php echo $count; ?>" action="/dev/group/show" - method="post"><input type="hidden" name="groupID" - value="<?php echo $group->getID(); ?>" /><a - href="javascript:document.show<?php echo $count; ?>.submit();">Details</a></form> - <form name="edit<?php echo $count; ?>" action="/group/edit" - method="post"><input type="hidden" name="groupID" - value="<?php echo $group->getID(); ?>" /><a - href="javascript:document.edit<?php echo $count; ?>.submit();">Edit</a></form> - <form name="delete<?php echo $count; ?>" action="/group/delete" - method="post"><input type="hidden" name="groupID" - value="<?php echo $group->getID(); ?>" /><a - href="javascript:document.delete<?php echo $count; ?>.submit();">Delete</a></form> + <td class='action'><a + href="<?php echo $this->url( + array( + 'module' => 'dev', + 'controller' => 'group', + 'action' => 'show', + 'groupID' => $group->getID() + ), + 'default', + true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td> + <td class='action'><a + href="<?php echo $this->url( + array( + 'module' => 'dev', + 'controller' => 'group', + 'action' => 'edit', + 'groupID' => $group->getID() + ), + 'default', + true) ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td> + <td class='action'><a + href="<?php echo $this->url( + array( + 'module' => 'dev', + 'controller' => 'group', + 'action' => 'delete', + 'groupID' => $group->getID() + ), + 'default', + true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a> </td> </tr> <?php @@ -29,7 +50,8 @@ } ?> </table> -<br /> <div> -<button onclick="location.href='/dev/group/link'">Link Groups</button> +<?php echo $this->formButton('linkgroups', 'Link Groups', array( + 'onclick' => 'self.location="/dev/group/link"', + 'class' => 'addbutton'))?> </div> |
