summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/group/index.phtml
diff options
context:
space:
mode:
authorBjörn Geiger2011-03-10 22:10:05 +0100
committerBjörn Geiger2011-03-10 22:10:05 +0100
commit7be4355001156faed62c71492234cba2c5bf96b4 (patch)
tree55bb96227ee354cc0c6d6788dc45020bd43d8bba /application/views/scripts/group/index.phtml
parentMerge branch 'master' of ssh://git.openslx.org/lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-7be4355001156faed62c71492234cba2c5bf96b4.tar.gz
pbs2-7be4355001156faed62c71492234cba2c5bf96b4.tar.xz
pbs2-7be4355001156faed62c71492234cba2c5bf96b4.zip
Benutzervewaltung, Gruppenverwaltung, Membershipverwaltung und noch leerer RoleController
Diffstat (limited to 'application/views/scripts/group/index.phtml')
-rw-r--r--application/views/scripts/group/index.phtml35
1 files changed, 35 insertions, 0 deletions
diff --git a/application/views/scripts/group/index.phtml b/application/views/scripts/group/index.phtml
new file mode 100644
index 0000000..b8178dc
--- /dev/null
+++ b/application/views/scripts/group/index.phtml
@@ -0,0 +1,35 @@
+<table>
+ <tr>
+ <th>Title:</th>
+ <th>Functions:</th>
+ </tr>
+ <?php
+ $count = 0;
+ foreach($this->groupList as $group) {
+ ?>
+ <tr>
+ <td><?php echo $group->getTitle(); ?></td>
+ <td>
+ <form name="show<?php echo $count; ?>" action="/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>
+ </tr>
+ <?php
+ $count++;
+ }
+ ?>
+</table>
+<br />
+<div>
+<button onclick="location.href='/group/link'">Link Groups</button>
+</div>