diff options
Diffstat (limited to 'application/modules/dev/views/scripts/group/show.phtml')
| -rw-r--r-- | application/modules/dev/views/scripts/group/show.phtml | 91 |
1 files changed, 46 insertions, 45 deletions
diff --git a/application/modules/dev/views/scripts/group/show.phtml b/application/modules/dev/views/scripts/group/show.phtml index 7b3660d..f8fbe1e 100644 --- a/application/modules/dev/views/scripts/group/show.phtml +++ b/application/modules/dev/views/scripts/group/show.phtml @@ -1,23 +1,21 @@ +<h1>Group Details</h1> <?php -if($_POST['groupID']) { +if($this->groupID) { ?> -<div align="right"> -<form name="editForm" action="/dev/group/edit/" method="post"><input - type="hidden" name="groupID" - value="<?php echo $this->group->getID(); ?>" /> <input type="submit" - name="edit" value="Edit" /></form> -<form name="deleteForm" action="/dev/group/delete/" method="post"><input - type="hidden" name="groupID" - value="<?php echo $this->group->getID(); ?>" /> <input type="submit" - name="delete" value="Delete" /></form> -</div> + <?php echo $this->formButton('deletegroup', 'Delete', array( + 'onclick' => 'self.location="/dev/group/delete/groupID/' . $this->group->getID() .'"', + 'class' => 'rightbutton'))?> + <?php echo $this->formButton('editgroup', 'Edit', array( + 'onclick' => 'self.location="/dev/group/edit/groupID/' . $this->group->getID() .'"', + 'class' => 'rightbutton'))?> +<span class="clear"></span> <table> <tr> - <td><b>Title:</b></td> - <td><?php echo $this->group->getTitle(); ?></td> + <th>Title</th> + <th>Description</th> </tr> - <tr> - <td><b>Description:</b></td> + <tr class="entry"> + <td><?php echo $this->group->getTitle(); ?></td> <td><?php echo $this->group->getDescription(); ?></td> </tr> <?php @@ -35,30 +33,31 @@ if($_POST['groupID']) { if(isset($this->groupRequestList)) { ?> <br /> -<div>Grouprequests:</div> -<br /> +<h2>Requests:</h2> <table> <tr> - <th>Firstname:</th> - <th>Name:</th> - <th>email:</th> - <th>city:</th> - <th>grant:</th> + <th>Firstname</th> + <th>Name</th> + <th>email</th> + <th>city</th> + <th>grant</th> </tr> <?php foreach($this->groupRequestList as $grouprequest) { $grouprequestID = $grouprequest['grouprequestID']; $person = $grouprequest['person']; ?> - <tr> + <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> - <form action="/dev/group/grantperson" method="post"><input type="hidden" - name="grouprequestID" value="<?php echo $grouprequestID; ?>" /> <?php printRoleSelect($this->roleList); ?> - <input type="submit" name="confirm" value="confirm" /></form> + <form action="/dev/group/grantperson" method="post"><input + type="hidden" name="grouprequestID" + value="<?php echo $grouprequestID; ?>" /> <?php printRoleSelect($this->roleList); ?> + <input type="image" src='/media/img/save.png' alt='Grant Person' + name="confirm" value="confirm" /></form> </td> </tr> <?php @@ -67,35 +66,39 @@ if($_POST['groupID']) { </table> <?php } - if(isset($this->memberslist)) { + if(isset($this->membersList)) { ?> <br /> -<div>Members:</div> -<br /> +<h2>Members:</h2> <table> <tr> - <th>Firstname:</th> - <th>Name:</th> - <th>email:</th> - <th>city:</th> - <th></th> + <th>Firstname</th> + <th>Name</th> + <th>email</th> + <th>city</th> + <th>revoke</th> </tr> <?php - foreach($this->memberslist as $member) { + foreach($this->membersList as $member) { $membershipID = $member['membershipID']; $person = $member['person']; ?> - <tr> + <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> - <form action="/dev/group/revokeperson" method="post"><input type="hidden" - name="membershipID" value="<?php echo $membershipID; ?>" /><input - type="hidden" name="personID" value="<?php echo $person->getID(); ?>" /> - <input type="submit" name="revoke" value="revoke" /></form> + <td class='action'><a + href="<?php echo $this->url( + array( + 'module' => 'dev', + 'controller' => 'group', + 'action' => 'revokeperson', + 'membershipID' => $membershipID, + ), + 'default', + true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a> </td> </tr> <?php @@ -104,10 +107,6 @@ if($_POST['groupID']) { </table> <?php } -} else { - ?> -<div>No Group has been chosen.</div> - <?php } function printRoleSelect($roleList) { @@ -120,3 +119,5 @@ function printRoleSelect($roleList) { } echo "</select>"; } +?> +<br /><br /><br /><br /><br />
\ No newline at end of file |
